Return to Homepage

Goto the Tip of the Month Archive

Other interesting pages ...
LinkedIn Profile
SAS Cheat Sheet
Useful SAS Code
Full SAS Example
Basic Statistics
Contact Information

SAS Tip of the Month
March 2013
(for SAS and WPS)

This month is a short, but powerful tip.

The two common ways to comment out SAS code is to use either

   * SAS Code;
   /* SAS Code */

The /**/ method cannot be nested, i.e. a pair of '/**/' cannot be nested inside another '/**/'.

One way to get around this is to create a dummy macro that is not envoked within your code, for example:

   data test1;
      set test0;
      * Some SAS statements;

   %macro SKIP;
     * SAS Code;
   %mend SKIP;

   proc print data=test1;

The code inside the SKIP macro will not be run.

Have a safe and happy March.

Updated March 01, 2013