View previous topic :: View next topic |
Author |
Message |
adous_sg Beginner
Joined: 13 Feb 2004 Posts: 25 Topics: 9
|
Posted: Mon Feb 16, 2004 4:32 am Post subject: How to find one particular member in a group of Libraries |
|
|
I try find one particular member in a group of Libraies, Any TSO command or REXX program can do it.
E.g
Find a copybook named 'test' in USERID.SRC.* libraries.
Thanks In advance |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Feb 16, 2004 9:02 am Post subject: |
|
|
adous_sg,
If you are Z/OS 1.4 you can just the use the command MEMBER test on the command prompt on 3.4 DS listing for USERID.SRC.*
The MEMBER command is used to search for a member name or pattern in all of the partitioned data sets in the data set list that are not migrated. It can be abbreviated as MEM or M.
You can limit the data sets to be searched by entering one of the following
optional parameters:
X or EX - to search only excluded data sets
NX - to search only non-excluded data sets
You can expand the number of data sets searched by entering one of the
following optional parameters:
RECALL1 - to search data sets migrated to DASD
RECALL2 - to search all migrated data sets
Command ===> member isr* searches for members starting with ISR
member xyz x searches for member 'xyz' in excluded
data sets
member xyz recall1 searches for member 'xyz' in in data
sets migrated to DASD as well as not
migrated data sets
The data set list is scrolled so that the first data set containing the member or pattern is at the top of the list. Normally the MEMBER command will find any occurrence of the specified member name or pattern within a partitioned data set that is not migrated.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
adous_sg Beginner
Joined: 13 Feb 2004 Posts: 25 Topics: 9
|
Posted: Tue Feb 17, 2004 8:37 pm Post subject: |
|
|
Kolusu
Unfortunately, my OS is OS/390 V2R10, it does not support the 'MEMBER' command.
So do u have any other way to reach the goal?
Anyway thanks a lot... |
|
Back to top |
|
|
karavi2000 Beginner
Joined: 17 Aug 2003 Posts: 51 Topics: 26 Location: Chennai
|
Posted: Wed Feb 18, 2004 2:29 am Post subject: |
|
|
Hi Kolusu,
Thanks. I was using a REXX to find a particular member in a group of dataset. Now I came to know that v have a built-in function for the same. Thanks for letting me know that.
Also, I would like to know whether v can exclude the datasets in 3.4 list based on the message v get after executing the 'Member mem-name' command. Please let me know.
.....
Hi adous_sq,
You can find the REXX routing which will satisfy your needs in
http://home.flash.net/~mzelden/mvsutil.html
There download Findmod.txt in 'Execs/Clists' to ur mainframe and try executing it.
Hope that should not be problem.
Thanks & Regards,
Ravishankar |
|
Back to top |
|
|
misfit Beginner
Joined: 01 May 2003 Posts: 26 Topics: 9 Location: India
|
Posted: Wed Feb 18, 2004 5:07 am Post subject: |
|
|
Adous,
i m trying for REXX solution.
a. do u know how many datasets can appear in USER.SRC.*. I mean if you know that
the search output gives only
USER.SRC.TST1
USER.SRC.TST2
USER.SRC.TST3 (even 10 such PDSs, but their names should be known).
In such a case, you can simply check for SYSDSN against all such PDSs.
b. Now, if you dont know the output of USER.SRC.* , you can use
x = OUTTRAP('pds_list'.)
"LISTCAT LVL('USER.SRC') "
x = OUTTRAP('OFF')
Now, pds_list.0 will have the number of lines trapped (which is not imp), and pds_list.1 to the number in pds_list.0 will have the list of all the PDSes.
Next job is to select only the lines which have first word as 'NONVSAM' .
This way you will have a list of PDSs which qualify for USER.SRC.*
So now, you can use the SYSDSN command to check for your member's extistence.
HTH _________________ <i><b> Don't wish it were easier. Wish you were better. </b></i> |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
misfit Beginner
Joined: 01 May 2003 Posts: 26 Topics: 9 Location: India
|
Posted: Wed Feb 18, 2004 9:19 am Post subject: |
|
|
Hi Kolusu,
I really admire you ..
i wonder how do u manage to have the last say (always)
Kudos to you !! _________________ <i><b> Don't wish it were easier. Wish you were better. </b></i> |
|
Back to top |
|
|
adous_sg Beginner
Joined: 13 Feb 2004 Posts: 25 Topics: 9
|
Posted: Thu Feb 26, 2004 4:49 am Post subject: |
|
|
Thanks all |
|
Back to top |
|
|
sathishgay Beginner
Joined: 03 Feb 2005 Posts: 10 Topics: 2 Location: MUMBAI
|
Posted: Fri Feb 04, 2005 3:59 am Post subject: SOLUTION |
|
|
For example, lets consider high level Qualifier as MYID.MYAPPLN.* and member as MYMEM
1. Go to 3.4 and list all PDS with MYID.MYAPPLN.*
2. Now issue, MEMBER MYMEM on the command line
THANKS AND REGARDS
SATHISHKUMAR _________________ OK |
|
Back to top |
|
|
Arturo Beginner
Joined: 09 Jun 2004 Posts: 13 Topics: 6 Location: Miami, Florida
|
Posted: Thu Feb 24, 2005 10:17 pm Post subject: |
|
|
Sathishkumar.
I tried your suggestion and it works great. I was looking for something else but i am glad that I checked this post. _________________ Regards,
Arturo |
|
Back to top |
|
|
|
|