Monday, September 11, 2017

SAS: Write value of a macro variable to log

Whenever I need to write the value of a macro variable to the SAS log, I do the following

%put MACVAL=&MACVAL;

Well, according to http://support.sas.com/documentation/cdl/en/mcrolref/69726/HTML/default/viewer.htm#n189qvy83pmkt6n1bq2mmwtyb4oe.htm, the same thing can be done as follows:

%put &=MACVAL;





No comments:

Post a Comment