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
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
|