I am running a macro in SAS that occasionally generates errors like this:
ERROR: Sort execution failure.
The macro continues processing after this error, but I would like to force it to stop further execution. Is there a way to do this?
Evaluating the automatic macro variable &syserr
and conditionally calling %abort
looks like it should work.