Date: Thu, 22 Mar 2012 13:29:43 -0400
Reply-To: Tom Abernathy <tom.abernathy@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Tom Abernathy <tom.abernathy@GMAIL.COM>
Subject: Re: Macro Debugging XXXX
%SUPERQ takes as its argument the NAME of a macro variable.
So you would only use &SEED if the macro SEED contained the name of the
macro variable whose content you wanted to quote.
On Thu, 22 Mar 2012 10:58:01 -0400, Bolotin Yevgeniy
<YBolotin@SCHOOLS.NYC.GOV> wrote:
>Shouldn't it be this?
>%IF condition %SUPERQ(&SEED.) NE
>
>Otherwise the literal SEED is never equal to the empty string
>
>
>-----Original Message-----
>From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Dan
>Abner
>Sent: Thursday, March 22, 2012 8:53 AM
>To: SAS-L@LISTSERV.UGA.EDU
>Subject: Macro Debugging XXXX
>
>Hi everyone,
>
>Anyone know why the condition below [%IF condition %SUPERQ(SEED) NE ]
>is not TRUE? The log explicitly states that the variable has been
>assigned the null value. I thought this is what (%IF condition
>%SUPERQ(SEED) NE tests??
>
>
>
>MLOGIC(PARTITION): Parameter RATES has value 70 30
>MLOGIC(PARTITION): Parameter SEED has value &SEED
>ERROR: The text expression &SEED contains a recursive reference to the
>macro variable SEED.
> The macro variable will be assigned the null value.
>MLOGIC(PARTITION): %IF condition %SUPERQ(SEED) NE is FALSE
>
>
>Thanks!
>
>Dan
|