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

Concatenate different datasets in a Search job Automatically


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ch.sridhar

New User


Joined: 01 May 2006
Posts: 7
Location: INDIA, Mumbai

PostPosted: Wed Dec 19, 2007 1:02 am
Reply with quote

Hi,

I am preparing one job and in one of the steps, I need to submit a search job where a particular string need to be searched in specified members of a data set. The list of the specified members, I will get from the previous step in the job. But the problem is I dont know how many members will be there and also how I can concatenate the datasets auotmatically.

Could somebody please let me know if there any way to do this.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Dec 19, 2007 1:17 am
Reply with quote

Do a 3.14 and it can create this for you then you can modify the job to suit your needs, adding libraries to search and changing the OUTDD, etc.

Code:

//MYJOB     JOB  LD000TT,'STODOLA',CLASS=1,MSGCLASS=X,         
//          MSGLEVEL=(1,1)                 
//SEARCH  EXEC PGM=ISRSUPC,                                         
//            PARM=(SRCHCMP,                                       
//            'ANYC')                                               
//NEWDD  DD DSN=PDS.A.B(FILE),DISP=SHR                 
//       DD DSN=PDSA.B(FILE2),DISP=SHR
//       DD DSN=PDSC.MYPDS.A.B(FILE3),DISP=SHR
//OUTDD  DD SYSOUT=(X)                                             
//SYSIN  DD *                                                       
SRCHFOR  'SEARCHVAL'                                               
/*                                                                 

Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Dec 19, 2007 1:22 am
Reply with quote

Just went back and reread the problem. My solution doesn't work.

Where is the list of members to search being stored, in a file? You wouldn't need to concatenate them into one dataset, you could itemize them like I did above. You need to create a custom step each time the job runs then. Is a COBOL program deciding which members to search? If so you could create and demand in dynamic JCL with the NEWDD step created listing all the datasets to search that the program identified.
Back to top
View user's profile Send private message
ch.sridhar

New User


Joined: 01 May 2006
Posts: 7
Location: INDIA, Mumbai

PostPosted: Wed Dec 19, 2007 1:52 am
Reply with quote

Hi Steve,

Thanks for your reply. The first Screen shot in my earlier attachment shows the list of members to be searched. The names in the brackets are the programs in that dataset where I need to search. This data I am getting from a sort step based on some filters which is the previous step before this search job.
So I cannot tell for sure how many members I need to search. What I want is based on the sort output, the concatenation should happen on NEW DD so many times and the Search job should run automatically as the next step.

I am not sure how to demand in dynamic JCL as I have never used any Dynamic JCL.

Please let me know if I can provide any more information so that somebody can help me out on this.
Back to top
View user's profile Send private message
Khadhar Basha

New User


Joined: 28 Oct 2014
Posts: 44
Location: India

PostPosted: Wed Oct 29, 2014 12:10 am
Reply with quote

Hi,

I have a same problem. I want to search for a sting in many PDS. But the PDS's I wanted to srchfor will be fetched in previous step.

Please help.


Thanks,
Basha
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8794
Location: Welsh Wales

PostPosted: Wed Oct 29, 2014 3:30 pm
Reply with quote

1) [b[DO NOT[/b] tag onto a topic that has been dormant for seven years.

2) Please explain in detail what your problem really is.

I will split this and start a new topic once you have explained properly
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 Members search in PDS JCL & VSAM 9
No new posts concatenate sysin to dsn JCL & VSAM 7
No new posts Need help to concatenate files with w... All Other Mainframe Topics 3
No new posts Compare Two datasets and Override Mat... DFSORT/ICETOOL 7
No new posts RegEX search in ISPF editor TSO/ISPF 4
Search our Forums:

Back to Top