Date: Mon, 17 Nov 2008 05:28:05 -0500
Reply-To: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject: Re: what's the difference between %If and if in data step
you should always keep in mind that the macro statements, including %if...%
then, %do...%end ...
are always resolved before a step is running. So you cannot reference to
any datastep-variables while the %-statements are resolved. You can only
have influence on the variable-names, not on the contents. And you can
only use the names in %if, you have nothing more at the moment, the %if is
On Mon, 17 Nov 2008 15:28:12 +0530, Anindya Mozumdar
>> Does that mean %if is used when there is macro variables?
>Yes, %if can be used only with macro definitions, i.e inside a
>%macro... %mend block.