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
 

 

Concatenate different datasets in a Search job Automatically

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Concatenate different datasets in a Search job Automatically
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    Post subject:
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    Post subject:
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    Post subject:
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: 37
Location: India

PostPosted: Wed Oct 29, 2014 12:10 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 29, 2014 3:30 pm    Post subject:
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    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 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
No new posts Finding unreferenced datasets without... Alan Playford JCL & VSAM 5 Tue Jul 12, 2016 9:07 pm
No new posts Search a Load Module sreekanth1984 TSO/ISPF 8 Tue Jun 07, 2016 8:45 pm
No new posts BDW in VB datasets harisukumaran JCL & VSAM 5 Sat May 28, 2016 9:46 am


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