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 Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am


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