Usually I would write a shell script in LINUX to execute SAS program.
I used to read return code for interpreting the status (success/fail) of the program as below method
I learnt that in SAS DI, there is a macro function rcSet(error) that can override the error code.
However, I cannot find a method to overwrite the return code when writing base SAS program.
Could anyone advise how to perform same behavior compared to SAS DI?
If really cannot overwrite the error code, is there any way to give out a return code for the shell script to read?
Many thanks.