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 Profile Log in to check your private messages Log in
 
To search a string in more than one datasets.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
aprak00
Warnings : 2

New User


Joined: 09 Aug 2006
Posts: 24

PostPosted: Fri Apr 06, 2007 2:10 pm    Post subject: To search a string in more than one datasets.
Reply with quote

Is there any way to search a string in more than one datasets with different LRECL?

Thanks,
Anu Prakash
Back to top
View user's profile Send private message

mainframe_96

New User


Joined: 18 Dec 2006
Posts: 13
Location: usa

PostPosted: Fri Apr 06, 2007 6:34 pm    Post subject: Re: To search a string in more than one datasets.
Reply with quote

You can search a string in more than one datsets,but they need to be same record length and type to be concatenated. I do not think you can have diff record lengths.

create different steps search1, search 2 by record length and execute the job

Code:

//SEARCH  EXEC PGM=ISRSUPC,                                 
//            PARM=(SRCHCMP,                                 
//            'ANYC')                                       
//NEWDD  DD DSN=pds.dsn1,                                 
//          DISP=SHR                       
//           DD DSN=pds.dsn2,                                 
//          DISP=SHR                                                           
//OUTDD  DD SYSOUT=(A)                                       
//SYSIN  DD *                                               
SRCHFOR  'STRING'                                           
/*                 



The search results will show where the serch matches came from (conact 01 , concat02)
Code:
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 Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm
No new posts change string before sertan string anatol DFSORT/ICETOOL 8 Tue Aug 15, 2017 5:43 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm

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