07-27-2012 01:55 AM
I have three jobs
All three jobs running N number times for different data. If JOB1 abended with errors. I am not interested to run JOB2 and JOB3. I would like to check job status after finishing my job JOB1, JOB2 and JOB3.
can you please help me to provide any command available for STATUS check in DI 3.4?
Thanks in advance.
07-27-2012 07:57 AM
How are these jobs scheduled?
If you are using Windows Task Scheduler, UNIX cron or LSF/Platform JS, you can build job dependencies in SAS Management Console's Scheduling plug-in.
07-30-2012 04:07 AM
I am not using any Schedular tools like Windows Task Scheduler, UNIX cron or LSF/Platform.
I am running the jobs using %include command
All jobs put it in DO loop to run N number of times.
How can i check job status? Could you please clarify
07-30-2012 04:15 AM
If you are in a Windows or UNIX environment, I suggest that you take look at the functionality offered in SMC, it has what you are asking for.
if you still want to stick to using %include, you can test the &job_rc macro variable after each job.
07-30-2012 06:08 AM
Thank you LinusH. I would like to use %include.
How can we use &JOB_RC to get the status of job which is getting called by %include?
should we call rcset(%syslibrc) ?
If it so how does it works i am not getting understand.
Could you please clarify?
07-30-2012 06:32 AM
If &job_rc <> 0 you probably want something to happen, like aborting the SAS session?
The neatest way is to build a macroto do the test and the appropriate action, and call this macro after each %include.