10-13-2015 09:29 AM
For some warnings SAS retrun code on unix is 1 while others 0.. Is there some general rule regarding retrun code for warnings.
I was under the impression that the return code for all warnings should always be 1.
10-13-2015 10:06 AM
There's one warning I know of that won't affect the return code. You get warnings when you haven't paid your license renewal, and are getting close to the expiration date of the software. To me, it makes sense that this would not change the return code. If you have written programs/macros/code to look for non-zero return codes, you wouldn't want red flags popping up all over the place just because you are getting close to your license renewal date.
10-13-2015 02:01 PM
This documentation should help you:
It describes the automatic macro variable SYSERR and what it's values can be. There is also a link on this page to the automatic macro variable SYSCC.
10-13-2015 03:19 PM
Be aware that you can encounter situations where SAS sets the return code incorrectly. A search through SAS notes may be helpful for these.
10-14-2015 09:39 AM - edited 10-14-2015 09:43 AM
I tend to rely more on log scanning than return codes. I found this recent WUSS paper from Troy Hughes a useful review of some of the return code idiosyncracies. http://www.lexjansen.com/wuss/2015/80_Final_Paper_PDF.pdf