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
 

 

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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 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 Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm


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