View previous topic :: View next topic |
Author |
Message |
arvibala Beginner

Joined: 12 Feb 2008 Posts: 142 Topics: 67
|
Posted: Mon Dec 29, 2008 3:48 pm Post subject: Scheduling Problem |
|
|
I have a Scheduling problem. Job A triggers B for every successful run. But if Job A has an empty file, it gives a return Code of 4 and it abends. I can make 4 as a Valid return code for Job A. But if I make it as a valid return code, Job B will be triggered. My problem is I want to make return Code 4 as a valid Return code for Job A and Job A should not Trigger Job B. Is there a way we can do this without touching the code? _________________ Arvind
"You can make a difference with your smile. Have that with you always" |
|
Back to top |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Tue Dec 30, 2008 2:56 am Post subject: |
|
|
Going back many years ............ just when schedulars were evolving
The way that we used to do this was by checking if the input file was empty or not in job B also. So when job B is triggered, it checks in a roundabout way that job A has processed data or not, and conditionally executed the remaining steps of job B. _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
 |
arvibala Beginner

Joined: 12 Feb 2008 Posts: 142 Topics: 67
|
Posted: Tue Dec 30, 2008 8:50 am Post subject: |
|
|
Thanks Expat,
If thats the only way Still, I have to do that. Wish we had some options.  _________________ Arvind
"You can make a difference with your smile. Have that with you always" |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Dec 30, 2008 2:23 pm Post subject: |
|
|
arvibala,
Remove the Trigger on JOB B by JOB A
Code a last step in Job A with cond code check of step which gives u a return code of 4 which will invoke job B dynamically using UCC7TRLR. UCC7TRLR is a proc which invokes the PGM SASSTRLR which actually demands the job. You can find the details of the pgm SASSTRLR in CA-7 Interfaces Guide manual
Another alternative is to combine the 2 jobs together
Kolusu |
|
Back to top |
|
 |
|
|