I use a macro to stop my SAS program on error, but it always disconnects from the server, and then I can no longer return my temporary datasets.
I tried:
OPTIONS ERRORABEND;
Here is the macro I tried:
%macro errchk;
%if &syserr >0 and &syserr ne 4 %then %abort;
%mend errchk;
After reaching this error, the processing of the following data steps is performed.
I cannot figure out how to stop the rest of the program, but DO NOT disconnect from the SAS server. Any ideas?
source
share