Type: | Macro function |
See: | %SYSEXEC Statement, SYSSCP and SYSSCPL Automatic Macro Variables, and SYSVER Automatic Macro Variable |
%macro runplot(ds); %if %sysprod(graph)=1 %then %do; title "GPLOT of %upcase(&ds)"; proc gplot data=&ds; plot style*price / haxis=0 to 150000 by 50000; run; quit; %end; %else %do; title "PLOT of %upcase(&ds)"; proc plot data=&ds; plot style*price; run; quit; %end; %mend runplot; %runplot(sasuser.houses)