Tips:Handy %PUT syntax for mvarName=text output

From sasCommunity
Jump to: navigation, search

How often do you use %put NOTE: mvarName=&mvarName; in your SAS code to write out the name and contents of a macro variable? Well with SAS 9.3 there is a new handy syntax feature that allows you to just do this with less typing.

You simple write it as: %put NOTE: &=mvarName;

Example:

%put NOTE: &=sysscpl &=sysvlong;
NOTE: SYSSCPL=X64_7PRO SYSVLONG=9.03.01M2P081512


....see also

Submitted By Md4