Type: | Macro statement |
Restriction: | Allowed in macro definitions only |
See: | %END Statement |
%macro reportit(request); %if %upcase(&request)=STAT %then %do; proc means; title "Summary of All Numeric Variables"; run; %end; %else %if %upcase(&request)=PRINTIT %then %do; proc print; title "Listing of Data"; run; %end; %else %put Incorrect report type. Please try again.; title; %mend reportit; %reportit(stat) %reportit(printit)