View previous topic :: View next topic
|
Author |
Message |
ch.sridhar
New User
Joined: 01 May 2006 Posts: 7 Location: INDIA, Mumbai
|
|
|
|
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 |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
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 |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
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 |
|
|
ch.sridhar
New User
Joined: 01 May 2006 Posts: 7 Location: INDIA, Mumbai
|
|
|
|
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 |
|
|
Khadhar Basha
New User
Joined: 28 Oct 2014 Posts: 44 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
|