Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 3 Sat Oct 14, 2017 2:29 am
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us