Hi,
Can anyone tell how does someone who is supporting a job know if it fails in the prod environment. Is any code included in every program to notify him automatically or the admin department notify him.?
The code is written in such a way that it will end the SAS process with a non-zero return code if it encounters a problem. On top of that, the wrapper shell script searches the log for things that might indicate a problem, and deliver a non-zero return code if SAS did not do so on its own.
Hi Kurt,
Thanks for the reply. Can you elaborate on what you mean by "non-zero return code if it encounters a problem". I'm a newbie to SAS
hope you don't mind.
Can you be more specific about how the Job is being executed in the production environment ? Is it triggered from a scheduler like LSF / Autosys etc. ? What is the OS ?
As mentioned by @Kurt_Bremser If you are using a Shell Wrapper script , A Non-Zero Return code will be passed on to your scheduler and based on the configuration in your environment a notification might be be triggered to the production support in an event of a failure
Also, SAS Provides Automatic Macro variables which contain the Return codes. The &SYSCC in particular can be very useful as always captures the highest value as the Return code on exit.
Here is link to the documentation :
Thanks for the reply. The job is triggered from LSF in UNIX
You can configure LSF jobs to send emails if there is any error. Check out the job properties in SAS Management Console. We use this ourselves and it works a treat.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.