Syntax, %MACRO statement
and %MEND statement:
%MACRO macro-name;
text
%MEND <macro-name>;
macro-name
names the macro. The
value of macro-name can be
any valid SAS name that is not a reserved word in the SAS macro facility.
text
can be any of the following
elements:
|
%macro printit; proc print data=&syslast (obs=5); title "Listing of &syslast data set"; run; %mend printit; %printit;
%macro printit; proc print data=&syslast (obs=5); title "Listing of &syslast data set"; run; %mend;
Syntax, MCOMPILENOTE=
system option:
OPTIONS MCOMPILENOTE= NONE | NOAUTOCALL
| ALL;
NONE
is the default value,
which specifies that no notes are issued to the log.
NOAUTOCALL
specifies that a note
is issued to the log for completed macro compilations for all macros
except autocall macros.
ALL
specifies that a note
is issued to the log for all completed macro compilations.
|
options mcompilenote=all; %macro printit; proc print data=&syslast(obs=5); title "Listing of &syslast data set"; run; %mend printit;
NOTE: The macro PRINTIT completed compilation without errors. 3 instructions 20 bytes
%printit
proc sort data=sashelp.cars out=cars_mpg; by MPG_City; run; %printit proc sort data=sashelp.cars out=cars_msrp; by MSRP; run; %printit
%printit
%macro printit; proc print data=&syslast; title "Listing of &syslast data set"; run; %mend printit;
proc print data=&syslast; title "Listing of &syslast data set"; run;
NOTE: There were 5 observations read from the data set WORK.UPDATE_SCHEDULE. NOTE: PROCEDURE PRINT used (Total process time): real time 0.02 seconds cpu time 0.00 seconds