I am using a macro to stop my SAS program on an error, but it always disconnects from the server and then I cannot get back my temporary data sets anymore.
I have tried:
OPTIONS ERRORABEND;
Here is the macro I have tried:
%macro errchk;
%if &syserr >0 and &syserr ne 4 %then %abort;
%mend errchk;
This one keeps processing the following data steps after reaching an error.
I cannot figure out how to stop the rest of the program from running, but NOT disconnect from the SAS server. Any ideas?