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.
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.
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.
Michelle
Be aware that you can encounter situations where SAS sets the return code incorrectly. A search through SAS notes may be helpful for these.
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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.