11-02-2017 06:44 AM - edited 11-02-2017 06:45 AM
Hi. I have a Dynamic SAS dataset with job names and its corresponding dependencies. The dependencies might be waiting for other jobs as well. Could you please advise
Exsmple below: Let me know any queries,
Main Table contains:
ABC can be triggered only when DEF and GHI are completed
successfully, but DEF can be triggerd only when KJL is completed successfully.
Also when a job is failed, other jobs which are not dependent should keep executing
WHen a job is completed, status is updated in log table.
how to trigger the jobs from this table in SAS?
11-02-2017 06:52 AM
I am using SAS EG . But actually, what we use is controlm scheduler for the dependencies and triggering . There are controlm jobs for each and there are around 5000 SAS Jobs. To reduce the controlm jobs, now the reqmnt is to maintain all dependencies in a table and trigger the jobs,
11-02-2017 06:53 AM
A SAS code has to be written for this. I am not sure how we wil know if a child job is completed successfully, i mean we can check the log, but how long to wait before triggering the master job .
11-02-2017 07:23 AM
Control-M is an enterprise scheduler. 5000 jobs is almost nothing to it. Don't start reinventing the wheel when you've already got the perfect tool.
If you want to reduce the number of jobs, look for SAS programs that can be combined into one.
11-07-2017 06:40 AM
Hi. To avoid many controlm jobs this is a new requirement,
Idiocy. It's only getting worse when you start mixing environments.
It only makes sense where you have a bunch of SAS jobs that can easily(!) be combined into one, and where the intermediate results are not important (eg for other jobs). As soon as you get more-than-plain-simple job logic, STAY WITH CONTROL-M.
11-02-2017 08:39 AM
Look at the systask and waitfor commands. Here is a link under 9.2 (has not changed as far as I know):
11-07-2017 05:29 AM
Hi All. Thanks for replies .My main doubt is if a job(JobA) is dependent on job(JobB) which in turn is dependent on another job(JobC), how will i know if Job C is completed . How long to wait for a job to be completed to proceed to another job ? Thanks,