Syntax, OPTIONS statement
with the SYMBOLGEN option:
OPTIONS NOSYMBOLGEN | SYMBOLGEN ;
NOSYMBOLGEN
specifies that log
messages about macro variable references will not be displayed. This
is the default.
SYMBOLGEN
specifies that log
messages about macro variable references will be displayed.
|
options symbolgen; %let CarType=Wagon; proc print data=sashelp.cars; var Make Model Type MSRP; where Type="&CarType"; run; options nosymbolgen;
SYMBOLGEN: Macro variable CARTYPE resolves to Wagon
Syntax, %PUT statement:
%PUT text;
text
is any text string.
|
%put The value of the macro variable CarType is: &CarType
119 %put The value of the macro variable CarType is: &CarType The value of the macro variable CarType is: Wagon
%put &=cartype;
This writes
the macro variable name and its value in the log as follows: CARTYPE=SEDAN
Argument
|
Result in the SAS Log
|
---|---|
_ALL_
|
lists the values of
all macro variables
|
_AUTOMATIC_
|
lists the values of
all automatic macro variables
|
_GLOBAL_
|
lists user-generated
global macro variables
|
_LOCAL_
|
lists user-generated
local macro variables
|
_USER_
|
lists the values of
all user-defined macro variables
|
Syntax, %SYMDEL statement:
%SYMDELmacro-variable-1<...macro-variable-n></option>;
macro-variable
is the name of one
or more macro variables or a text expression that generates one or
more macro variable names. You cannot use a SAS variable list or a
macro expression that generates a SAS variable list in a %SYMDEL statement.
option
NOWARN
suppresses the warning
message when an attempt is made to delete a non-existent macro variable.
|
%symdel CarType;