10-21-2014 02:42 AM
My SAS scripts generating some warning messages. when I run this scripts in LSF warnings consider as a errors and jobs become red and exit the flow. is any option or method to suppress/ignore warnings in LSF scheduler.
10-21-2014 02:57 AM
I STRONGLY advise to make any SAS batch program completely free of warnings before running it with a scheduler. That way, when an exit code <> 0 is encountered, you can be sure that something unexpected happened. Ignoring WARNINGs will lead to undetected errors, sooner or later, and is BAD practice.
10-21-2014 03:20 AM
Sounds like you have a system maintenance process issue, rather than a technical one.
Just contact the responsible for the SAS jobs and have them correct the warnings.
I shouldn't say this, but SAS configuration is prepared for this, check out the comment in ..\BatchServer\sasbatch.bat/sh.
10-21-2014 03:42 AM
Use a LART on the "clients".
(LART = Luser Attitude Readjustment Tool, in the US aka baseball bat)
Simply reject any SAS program that does not terminate with exit code 0 at successful execution. Or obtain the authorization to modify the codes and do the work yourself. (That is what I do when being handed user's SAS codes to run in batch. I optimize/correct the code until it exits with 0, and run a proc compare on the results of the altered and original code before handing the job off to the datacenter people).
BTW, not only do we flag an exit code <> 0 as error, I have actually an expanded version of error checking in our sasbatch (that predates the sasbatch in SAS' own Batchserver by about 10 years) where I artificially generate non-zero exit codes if I encounter certain phrases/words in the log file.
10-21-2014 03:30 AM
You cannot overcome this without a good description coming in from your client how to handle all conditions. When there is something getting into contradictions with some code that must also get decided&described.
A pitty as you cannot answer always "yes" to them on forehand.
SAS(R) 9.4 Language Reference: Concepts, Fourth Edition Handling error codes.
SAS(R) 9.4 Companion for UNIX Environments, Fourth Edition syscc see notes on recognizing errors they can be changed (not stable).
Batch processing (like LSF) was common to mainframes having a well defined CC. At Windows it got the focus on pc-desktop usage not batch.