Posted: Wed Nov 11, 2009 7:08 pm Post subject: Receive multiple files
I have a peculiar problem here.
Overview:
Every day business representatives submit some messages for processing, which are internally directed to come my userid.
From this we understand that the no of messages that I have for my processing are not fixed. (somedays we have 5 somedays 9)
So everyday i do a TSO RECEIVE to receive all the files. The format of the filename is
USERID.RREGEDIT.D091101
USERID.RREGEDIT.D091102
......
USERID.RREGEDIT.D091109
(Notice the last Low level qualifier changes for every message).
Goal :
I want to merge all the files into 1 file which I can then use for my further processing.
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
Posted: Wed Nov 11, 2009 7:12 pm Post subject:
since you do a tso receive (manual operation),
you know the names of the files,
so just concatenate them for your processing, thus requiring no extra processing.
at worst, you would need to create an INCLUDE file, which then can be used in your standard jcl. _________________ Dick Brenholtz
American living in Varel, Germany
My Query is :
We create only the jcl in the sysout(we can also direct it to a dataset).
Can we execute this "created" jcl in one of the steps of the main jcl and then in the next step execute the main process.
Can I put a condition code on the main process so that it executes only when the created jcl executes successfully.
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
Posted: Thu Nov 12, 2009 2:11 pm Post subject:
The created JCL cannot execute in the same job that creates it. You would need to submit the dataset with the created JCL as a new job thru the INTRDR.
You could append the main job JCL (with COND CODE checking) to the same dataset so it follows the combine step.
You should be able to do what you want with 2 processes.
One to generate the remainder (step 2 and step 3) of the jcl including a COND test to bypass the 3rd step if there is a problem with step 2. _________________ All the best,
Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Fri Nov 13, 2009 11:12 am Post subject:
Bindaasamit,
*sigh* you don't need 2 steps in the first place , I showed you an example to merge the datasets into a single file as your initial post only mentions that. You can change that to your main process which will have all the datasets concatenated to the ddname the program reads.
Show me the JCL which you use to run the main process and I will show you how to do it. _________________ Kolusu
www.linkedin.com/in/kolusu
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum