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 

CA7 Scheduling

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
V.SURESH
Beginner


Joined: 21 Apr 2005
Posts: 1
Topics: 1

PostPosted: Thu Apr 21, 2005 4:31 am    Post subject: CA7 Scheduling Reply with quote

I have three jobs A, B and C. A triggers B and B triggers C. A is triggered by an NDM process. The 2nd run of A should not start until the job C of the previous cycle is completed. So is there any option to accomplish this using CA7 scheduling ? We have no control over the NDM process, and the problem crops up when we have two succesive A jobs getting triggered one after the other quickly, in a narrow time window.

Thanks in advance,
Suresh.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Apr 21, 2005 5:43 am    Post subject: Reply with quote

v.suresh,

Merge JOB B and JOB C into JOB A. By doing so you will have only 1 job. So now even if JOB A is triggered within a Short span of time, it will just wait in the queue untill prior run of JOB A is completed.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Apr 21, 2005 8:04 am    Post subject: Reply with quote

This is one of those tricky situations where, because the jobs are event-driven, the scheduling system is not going to have a lot of control over how the jobs are processed. Certainly, kolusu's suggestion deserves consideration, as does a possible re-design of the entire process.

However, there may be an alternative:

Have job A, at the beginning, check for the existence of a control dataset. If the dataset exists, suspend the execution of A, or, end A and have it reload itself into the schedule to run again after a pre-determined time span (1 minute, 5 minutes, etc.). Have job A, when it has successfully and completely run, catalog the control dataset. Have job C delete the control dataset when it's done.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Apr 21, 2005 9:36 am    Post subject: Reply with quote

Quote:

Have job A, at the beginning, check for the existence of a control dataset. If the dataset exists, suspend the execution of A, or, end A and have it reload itself into the schedule to run again after a pre-determined time span (1 minute, 5 minutes, etc.). Have job A, when it has successfully and completely run, catalog the control dataset. Have job C delete the control dataset when it's done.


Superk,

There is a likely chance getting into an infinite loop. Take the following scenario.
Code:

JOB A  1ST RUN at 11.00 AM
JOB A  2ND RUN AT 11.15 AM (1ST RUN IS NOT COMPLETE)
JOB A  3RD RUN AT 11.20 AM (1ST RUN IS NOT COMPLETE YET)
JOB A  4TH RUN AT 11.25 AM (1ST RUN IS NOT COMPLETE YET !!)


Now everytime you check the existence of the dataset and re-load the Job A and finally you will end up running JOB A in a loop.

The other alternative would be to let JOB A create a GDG version every time and at the end of the day trigger JOB B and JOB C which will process the GDG versions and delete all the versions after successful completion.

Kolusu
_________________
Kolusu
www.linkedin.com/in/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 -> Utilities 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