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 in many pds at a time

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


Joined: 20 Jun 2003
Posts: 112
Topics: 48
Location: Bangalore

PostPosted: Fri Jul 11, 2003 2:55 am    Post subject: Search in many pds at a time Reply with quote

Hi all,

I need to search for a string "reports generated" in 200 pds. Each Pds has around 500 members. Is there any easy way to do it. If i used fileaid or superce, i need to take each pds separately and search on it. Any way to do this at one go...using some jcl or may be rexx.

Pls tell me.

Thanks,
Deepesh
Back to top
View user's profile Send private message AIM Address
Sreejith
Intermediate


Joined: 02 Dec 2002
Posts: 155
Topics: 25
Location: N.Ireland

PostPosted: Fri Jul 11, 2003 4:11 am    Post subject: Reply with quote

you can concatenate the NEWDD as follows

Code:

//SEARCH  EXEC PGM=ISRSUPC,                       
//            PARM=(SRCHCMP,                     
//            'ANYC')                             
//NEWDD  DD DSN=COBOL.JCL,DISP=SHR       
//       DD DSN=COBOL.SOURCE,DISP=SHR     
//OUTDD  DD SYSOUT=*                             
//SYSIN  DD *                                     
SRCHFOR  'reports generated'                                     
/*                             
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
deepeshk79
Beginner


Joined: 20 Jun 2003
Posts: 112
Topics: 48
Location: Bangalore

PostPosted: Fri Jul 11, 2003 4:58 am    Post subject: Reply with quote

thanks sreejith
Back to top
View user's profile Send private message AIM Address
patnekar
Beginner


Joined: 27 Jan 2003
Posts: 41
Topics: 16

PostPosted: Thu Jul 17, 2003 4:24 pm    Post subject: Reply with quote

Deepesh,
I do this without using JCL. In option 3.4 give the high level qualifier for all the PDSs. Then on the command line use the command
SRCHFOR 'your search string'

This will search through all the PDSs which are listed. It'll save the search list too.

Puru
Back to top
View user's profile Send private message Yahoo Messenger
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Thu Jul 17, 2003 10:51 pm    Post subject: Reply with quote

Puru,
I think, SRCHFOR is a s/w specific for your installation. It doesn'r work at my place. I have heard of SRCHFOR before. I think it is one of the softwares freely available. I forget the site from where SRCHFOR can be downloaded.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Alain Benveniste
Beginner


Joined: 04 May 2003
Posts: 92
Topics: 4
Location: Paris, France

PostPosted: Sat Jul 19, 2003 5:28 am    Post subject: Reply with quote

Just here :

http://www.chicago-soft.com/tsotimes/spring96/qt2.html

Wink
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sun Jul 20, 2003 10:50 pm    Post subject: Reply with quote

Thanks for the link, Alain.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
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 -> 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