Type: | Macro statement |
Alias: | %GO TO |
Restriction: | Allowed in macro definitions only |
See: | %label Statement |
%macro check(parm); %local status; %if &parm= %then %do; %put ERROR: You must supply a parameter to macro CHECK.; %goto exit; %end; more macro statements that test for error conditions %if &status > 0 %then %do; %put ERROR: File is empty.; %goto exit; %end; more macro statements that generate text %put Check completed successfully.; %exit: %mend check;