I have a situation, where I have to run a particular job (JOB1) in two different scenarios. One is when the header job(A) will create an empty file (RC=1) and another when it will create an non empty file (RC=0).
(empty o/p file)
A -----------------> JOB1
| (Non empty o/p file)
Yes. In the first phase if I have an empty output file then it should by pass the process (B->C), but if the the output file is non empty then it should execute the process(B->C) to get the required input file for the JOB1. Hope this clears the situation.
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
My question still remains - why is this better served using 3 jobs that have to be maintained rather than a single job that conditionally executes the needed steps?
If JOB1 is and must remain a totally separate job, "this" job could be set up to create the needed output conditionally. Once this job completes (either way), the file would be created. JOB1 could be defined as a successor job in the schedule depending on the successful completion of "this" job.