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 (July 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 15 Jul 2009 09:37:29 -0400
Reply-To:     Chang Chung <chang_y_chung@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Chang Chung <chang_y_chung@HOTMAIL.COM>
Subject:      Re: asterisk-style comment
Comments: To: pobelgollum@GMAIL.COM

On Tue, 14 Jul 2009 18:37:32 -0700, Pobel <pobelgollum@GMAIL.COM> wrote: ... >I have one more question about comments within macro. ... >Would you please explain the reason?

Hi, a bit more simplified, your macros c and d are:

options mprint; %macro c; * "; %put x; * "; %mend c; %c %macro d; %* "; %put x; %* "; %mend d; %d

In the macro c, the first and the third lines are just text to the macro processor, thus they are stored as they are when compiled, and are generated as text when the macro is executed, as the mprint option shows. in the macro d, there is only one macro statement (a macro comment statement) which has a double quoted string in it. hope this helps.

cheers, chang


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