| Valid in: | Configuration fileOPTIONS windowOPTIONS statementSAS invocation |
| PROC OPTIONS GROUP= | MACRO
LOGCONTROL |
| Type: | System option |
| Default: | NOMLOGIC |
| See: | The SAS Log in SAS Language Reference: Concepts |
%macro mktitle(proc,data);
title "%upcase(&proc) of %upcase(&data)";
%mend mktitle;
%macro runplot(ds);
%if %sysprod(graph)=1 %then
%do;
%mktitle (gplot,&ds)
proc gplot data=&ds;
plot style*price
/ haxis=0 to 150000 by 50000;
run;
quit;
%end;
%else
%do;
%mktitle (plot,&ds)
proc plot data=&ds;
plot style*price;
run;
quit;
%end;
%mend runplot;
options mlogic;
%runplot(sasuser.houses)MLOGIC(RUNPLOT): Beginning execution. MLOGIC(RUNPLOT): Parameter DS has value sasuser.houses MLOGIC(RUNPLOT): %IF condition %sysprod(graph)=1 is TRUE MLOGIC(MKTITLE): Beginning execution. MLOGIC(MKTITLE): Parameter PROC has value gplot MLOGIC(MKTITLE): Parameter DATA has value sasuser.houses MLOGIC(MKTITLE): Ending execution. MLOGIC(RUNPLOT): Ending execution.