View previous topic :: View next topic |
Author |
Message |
deepeshk79 Beginner
Joined: 20 Jun 2003 Posts: 112 Topics: 48 Location: Bangalore
|
Posted: Fri Jul 11, 2003 2:55 am Post subject: Search in many pds at a time |
|
|
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 |
|
 |
Sreejith Intermediate
Joined: 02 Dec 2002 Posts: 155 Topics: 25 Location: N.Ireland
|
Posted: Fri Jul 11, 2003 4:11 am Post subject: |
|
|
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 |
|
 |
deepeshk79 Beginner
Joined: 20 Jun 2003 Posts: 112 Topics: 48 Location: Bangalore
|
Posted: Fri Jul 11, 2003 4:58 am Post subject: |
|
|
thanks sreejith |
|
Back to top |
|
 |
patnekar Beginner
Joined: 27 Jan 2003 Posts: 41 Topics: 16
|
Posted: Thu Jul 17, 2003 4:24 pm Post subject: |
|
|
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 |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Thu Jul 17, 2003 10:51 pm Post subject: |
|
|
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 |
|
 |
Alain Benveniste Beginner
Joined: 04 May 2003 Posts: 92 Topics: 4 Location: Paris, France
|
|
Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Sun Jul 20, 2003 10:50 pm Post subject: |
|
|
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 |
|
 |
|
|