News |
Macro malfunction or user error?Warren Repole, a Training Specialist with SAS Education and Training, helps answer questions that students pose to instructors through SAS' instructor list serve. Recently, Repole received this question from a SAS® user who was attending a training class: SAS User: Under what circumstances would a comment in the form * add_comment_here; cause undesirable results? Repole: The big problem with the *comment; form is that folks tend to use it (improperly) to comment out macro statements such as %LET or %PUT. This works in open code but not within a macro, evidence that differences in how the tokens are processed depends on the context. So it's not really a software issue; it's primarily a "user error" issue. Here is a common example: Yikes! 1 options nostimer; NOTE: There were 19 observations read from the data set SASHELP.CLASS 6 NOTE: Today is 05MAY2009 [You may recognize that the NOSTIMER option serves no other purpose than to remove some extraneous information from the SAS log, making it easier to read.] |