BookmarkSubscribeRSS Feed
SP_SAS
Obsidian | Level 7

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.

4 REPLIES 4
Astounding
PROC Star

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:

http://support.sas.com/documentation/cdl/en/mcrolref/67912/HTML/default/viewer.htm#n1wrevo4roqsnxn1f...

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

SASKiwi
PROC Star

Be aware that you can encounter situations where SAS sets the return code incorrectly. A search through SAS notes may be helpful for these.

Quentin
Super User

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

BASUG is hosting free webinars Next up: Don Henderson presenting on using hash functions (not hash tables!) to segment data on June 12. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 924 views
  • 0 likes
  • 5 in conversation