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 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 resolved. Gerhard

On Mon, 17 Nov 2008 15:28:12 +0530, Anindya Mozumdar <anindya.lugbang@GMAIL.COM> wrote:

>> 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. > >-- >Anindya Mozumdar >

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