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 Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts Utility for search operation Gopalakrishna551 TSO/ISPF 11 Wed Jan 03, 2018 11:07 am
No new posts TBSARG - Deleting the search criteria... ISPFHerc TSO/ISPF 6 Thu Dec 14, 2017 8:18 am
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm

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