I have a requirement to Merge 3 Input Files and sometimes I might not receive MIS.EXTRACT.ABCD2060.CZT File.
The job should sort/merge other 2 files (MIS.EXTRACT.ABCD2062.LAU and MIS.EXTRACT.ABCD2064.LBL).
How to execute job with only 2 input files. Please advice.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue May 10, 2016 10:44 am Post subject: Re: Merging multiple input files
jayram99 wrote:
I have a requirement to Merge 3 Input Files and sometimes I might not receive MIS.EXTRACT.ABCD2060.CZT File.
The job should sort/merge other 2 files (MIS.EXTRACT.ABCD2062.LAU and MIS.EXTRACT.ABCD2064.LBL).
How to execute job with only 2 input files. Please advice.
Thank you.
You have 2 options
1. Code an IEFBR14 step with DISP=(MOD,KEEP,DELETE) for each file and even if the file did not exist it will be present for the SORT step.
2.Code the JCL as a PROC and depending on the availability of the files you can DUMMY out the unavailable file. _________________ 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