IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Search a String in Multiple PDS's


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
osurendhra

New User


Joined: 01 Jun 2005
Posts: 2
Location: Hyderabad

PostPosted: Fri Dec 23, 2005 8:30 pm
Reply with quote

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

Active User


Joined: 26 Jul 2004
Posts: 104

PostPosted: Fri Dec 23, 2005 10:58 pm
Reply with quote

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

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Dec 24, 2005 6:27 am
Reply with quote

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

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Mon Dec 26, 2005 10:13 am
Reply with quote

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 icon_razz.gif
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Dec 27, 2005 3:42 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top