MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Scheduling Problem

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Mon Dec 29, 2008 3:48 pm    Post subject: Scheduling Problem Reply with quote

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
View user's profile Send private message Yahoo Messenger
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Tue Dec 30, 2008 2:56 am    Post subject: Reply with quote

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
View user's profile Send private message
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Tue Dec 30, 2008 8:50 am    Post subject: Reply with quote

Thanks Expat,

If thats the only way Still, I have to do that. Wish we had some options. Smile
_________________
Arvind
"You can make a difference with your smile. Have that with you always"
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Dec 30, 2008 2:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group