MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to find one particular member in a group of Libraries

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
adous_sg
Beginner


Joined: 13 Feb 2004
Posts: 25
Topics: 9

PostPosted: Mon Feb 16, 2004 4:32 am    Post subject: How to find one particular member in a group of Libraries Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Feb 16, 2004 9:02 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
adous_sg
Beginner


Joined: 13 Feb 2004
Posts: 25
Topics: 9

PostPosted: Tue Feb 17, 2004 8:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
karavi2000
Beginner


Joined: 17 Aug 2003
Posts: 51
Topics: 26
Location: Chennai

PostPosted: Wed Feb 18, 2004 2:29 am    Post subject: Reply with quote

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
View user's profile Send private message
misfit
Beginner


Joined: 01 May 2003
Posts: 26
Topics: 9
Location: India

PostPosted: Wed Feb 18, 2004 5:07 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Feb 18, 2004 6:57 am    Post subject: Reply with quote

Adous Sg,

Look at the 4th post in this topic which was posted by me on Mon Sep 22,2003 at 1:41 pm

http://www.mvsforums.com/helpboards/viewtopic.php?t=1225

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
misfit
Beginner


Joined: 01 May 2003
Posts: 26
Topics: 9
Location: India

PostPosted: Wed Feb 18, 2004 9:19 am    Post subject: Reply with quote

Hi Kolusu,
I really admire you Razz ..
i wonder how do u manage to have the last say (always) Smile

Kudos to you !!
_________________
<i><b> Don't wish it were easier. Wish you were better. </b></i>
Back to top
View user's profile Send private message
adous_sg
Beginner


Joined: 13 Feb 2004
Posts: 25
Topics: 9

PostPosted: Thu Feb 26, 2004 4:49 am    Post subject: Reply with quote

Thanks all
Back to top
View user's profile Send private message
sathishgay
Beginner


Joined: 03 Feb 2005
Posts: 10
Topics: 2
Location: MUMBAI

PostPosted: Fri Feb 04, 2005 3:59 am    Post subject: SOLUTION Reply with quote

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
View user's profile Send private message AIM Address
Arturo
Beginner


Joined: 09 Jun 2004
Posts: 13
Topics: 6
Location: Miami, Florida

PostPosted: Thu Feb 24, 2005 10:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group