I know there exists the LEAVE statement for data step DO loops to terminate the current loop. I cannot find, however, documentation for a corresponding macro command.
I've tried %LEAVE
but that appears not to be defined.
- Does SAS not have a break statement for macro loops?
- If not, are there other options beside using
%GOTO
or aDATA _NULL_
?
%leave
; the best way to do it depends on the specifics of your macro. – Joe