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

To search a string in more than one datasets.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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 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 Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top