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 

Search for a string in all the datasets created using my ID

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
anjali
Beginner


Joined: 23 Nov 2005
Posts: 5
Topics: 4

PostPosted: Tue Nov 29, 2005 5:29 am    Post subject: Search for a string in all the datasets created using my ID Reply with quote

Hii all,

My reqmnt: Say suppose my Id in mainframes is ab1234. I need to search for a string in all the datasets created by my ID.
Say i need to search for a string in all the datasets - ab1234.*.*
As this can't be achieved using 3.14 option,
Can someone guide me through the JCL or is there any command?

Thanks,
Anjali
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Nov 29, 2005 5:53 am    Post subject: Reply with quote

anjali,

You CANNOT search all datasets as datasets can be of different length. If all your datasets are of the same lrecl then may be rexx can issue a DSLIST command and prepare the JCL to invoke the search.

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
nevilh
Beginner


Joined: 11 Aug 2004
Posts: 115
Topics: 0

PostPosted: Tue Nov 29, 2005 8:08 am    Post subject: Reply with quote

On a z/OS 1.4 or later system use the SRCHFOR command from option 3.4.
ie from panel ISRUDSL0 enter the command srchfor xxxx
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Nov 29, 2005 8:23 am    Post subject: Reply with quote

nevilh,

That was a cool command. Never knew that existed. You learn something new everyday. Thanks

Just in case if people are wondering as to how to find the OS version on their mainframe then you can try the following.

Choose Option 7.3 from ISPF main menu. It lists all the variables. Pf8 and you will find the variable
Code:

ZOS390RL


On the right you will find the OS version.

Another alteranative is type WHO at SDSF command prompt and on the second line you will find
Code:

MVS=z/OS 01.nn.00


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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