View previous topic :: View next topic
|
Author |
Message |
osurendhra
New User
Joined: 01 Jun 2005 Posts: 2 Location: Hyderabad
|
|
|
|
Hi
I need the solution for this:
I want to search the string in 3 PDS's. Please give a JCL for this.
Thanks
Surendhra |
|
Back to top |
|
|
Ramya A
Active User
Joined: 26 Jul 2004 Posts: 104
|
|
|
|
A FileAid batch would do this:
Code: |
//FASTEP EXEC PGM=FILEAID,REGION=6M
//STEPLIB DD DISP=SHR,DSN=SYSM.FILEAID.LOAD
//SYSPRINT DD SYSOUT=*
//SYSLIST DD DSN=<Output.dataset>
//DD01 DD DSN=Search.pds.no1,DISP=SHR
// DD DSN=Search.pds.no2,DISP=SHR
//DD01SC DD DSN=Userid.FILEAID.SC.D05357.T122104(SELECT),
// DISP=(OLD,DELETE)
//SYSIN DD *
$$DD01 LIST FORM=JCL
/* |
You can generate this JCl using File Aid option 3.6-->M (With batch) |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Surendhra,
You can try this:
Code: |
//JSPA JOB etc
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,'ANYC')
//NEWDD DD DISP=SHR,DSN=XYZ.Y2K.PROCLIB
// DD DISP=SHR,DSN=DSN2
// DD etc
//OUTDD DD DISP=OLD,DSN=XYZ.SRCHFOR.LIST
//SYSIN DD *
SRCHFOR ' ACTYP',
etc
SRCHFOR ' ACT' |
|
|
Back to top |
|
|
Prasanthhere
Active User
Joined: 03 Aug 2005 Posts: 306
|
|
|
|
The best method is go to 3.15 In that menu in the Asis column give the strings u want to search with in quotes give the option 1 or 2 it will create a jcl no need for u to code and in that JCL include what ever PDS u want to search for the String .And also u can include some other strings to
Hope this will help .If anything wrong please let me know |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
All he has to do is cut and paste it into his personal JCL library and he has a utility he can use again and again. Just comment out the DD cds you don't need and include others.
If you think you may use the cntl cds again, just code "//" after the last card and move them after it. When you need them again move the back up. E.G.:
//sysin dd *
SEARCH 'XXX',
SEARCH 'YYY'
//
SEARCH 'AAA',
SEARCH 'BBB' |
|
Back to top |
|
|
|