|
Hi All, Earlier today we saw the LSF scheduler mark a job as failed because PROC EXPORT ran with 0 records (and set the SYSCC and SYSERR to 1012). This wasn't an problem as we knew that the note in the log would cause this to occurr. This has made me think about how I'd handle the issue if it wasn't clear which of the notes in the log could cause LSF to flag a failiure or would set one of the various SAS system error/information macro variables. What I think I'd like to have in that scenario is a table containing all the Errors, Warnings and Notes, along side which, if any, system flags they set. Is anybody aware of such a resource existing (I couldn't find anything with some quick searches)? Cheers, Will |
|
Not sure if this is what you are looking for, but you can save your log to a file (via PROC PRINTTO) and then parse it for the different kind of messages. I have such a macro I wrote, that I'm sharing with you, I didn't have time to translate all parameters and everything (it's in Spanish). But the basic idea is you output the log to a text file in your PC/server and then parse it using
You can use this macro to parse your log and if you modify the macro you can output any system variables you need whenever necessary. Hope this helps. |