Search notes:

SAS programming - macro statement: %put

%put writes text and values of macro variables to the log.

Show variable name AND its value

The &= construct allows to print the name and the value of a macro variables:
%let   tq84_macro_var=foo bar baz;

* Show macro variable name AND its value: ;
%put &=tq84_macro_var;
Github repository about-SAS, path: /macro-processor/statements/put/ampersand-equal.sas

Show automatic variables

Automatic macro variables can be shown with
%put _automatic_;

See also

put
macro statements

Index