1

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?

itzy
  • 11,275
  • 15
  • 63
  • 96

1 Answers1

2

Evaluating the automatic macro variable &syserr and conditionally calling %abort looks like it should work.

itzy
  • 11,275
  • 15
  • 63
  • 96