Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Search a String in Multiple PDS's

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Search a String in Multiple PDS's
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    Post subject: Re: Search a String in Multiple PDS's
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    Post subject:
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    Post subject: Re: Search a String in Multiple PDS's
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us