LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2002, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 25 Nov 2002 08:57:09 -0500
Reply-To:     "Karl K." <karlstudboy@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Karl K." <karlstudboy@HOTMAIL.COM>
Subject:      Re: macro resolution inside *-comments

If I'm reading you correctly, I'm not really seeing a "comment". An asterisk denotes a comment at the beginning of a STATEMENT, not the begining of a line of text. There's no semi-colon after "%bad", so the next line isn't really a comment.

(The following code is untested.)

For example, if we define %bad as something like: %macro bad; %str(proc freq; table x); *note no semicolon inside the %str function; %mend;

Then the SAS code: %bad * whatever;

Resolves to:

proc freq; table x * whatever;

Perfectly legal executable code, without any comments, right? "* whatever" is part of the table statement in proc freq, not a comment.

If I'm missing your point, my apologies

Karl


Back to: Top of message | Previous page | Main SAS-L page