As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Tips:Using The Asterisk to Comment Macro Code

From sasCommunity
Jump to: navigation, search
%* In open code the macro
%* variable &X is NOT created;
*%let x = 5;
 
%macro abc;
%* Macro variable &Y IS created;
*%let y = 5;
%put &y;
%mend abc;
%abc *;

It is not unusual for programmers to use the asterisk-style comment to comment-out macro statements, however this technique does not always work. Be sure to use a macro comment when commenting out macro statements.


Submitted by Art Carpenter. Contact me at my Discussion Page.

....see also