Hi Leonid, thank you for this article! I found very helpful and have a question.

For the scenario where status code 1 is an acceptable value, how can we conditionally set a warning return status in SAS without aborting? For example, in my data step I have the following:

if …. then do;
....
else do ;
put 'WARNING: Invalid RO code format for site=' site;
*set return code to indicate warning but not abort?? ;
end;

Then in my script I check the status code:

if [ $exitcode -gt 0 ]
then exit
fi