Date: Tue, 21 Sep 2010 14:37:13 -0400
Reply-To: Jeff <zhujp98@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jeff <zhujp98@GMAIL.COM>
Subject: Re: what is wrong with this code?
In-Reply-To: <AANLkTinTzeK-70RbWeZXTxgjWXgSw+h3tsRvnOaRbGnQ@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Why %if "&cutoff"<=0.05 %then %do;
can never be true?
Thanks.
Jeff
On Tue, Sep 21, 2010 at 2:14 PM, Data _null_; <iebupdte@gmail.com> wrote:
> Also this statement can never be true.
>
> %if "&cutoff"<=0.05 %then %do;
>
> Please, RTM regarding macro expressions.
>
> On Tue, Sep 21, 2010 at 1:05 PM, Jeff <zhujp98@gmail.com> wrote:
> > %macro m;
> > data _null_;
> > set param.&desc.&con.;
> > if variabe="&con." then do;
> > call symput("cutoff", probt);
> > end;
> > run;
> >
> > %put &cutoff;
> > %if "&cutoff"<=0.05 %then %do;
> > data sigparam.&desc.&con.;
> > set param.&desc.&con;
> > %end;
> > run;
> > %mend;
> >
> >
> >
> > WARNING: Apparent symbolic reference CUTOFF not resolved.
> > &cutoff
> > WARNING: Apparent symbolic reference CUTOFF not resolved.
> >
> > NOTE: There were 18 observations read from the data set
> > PARAM.CONTINUEMPRLEVELC1I7.
> > NOTE: The data set SIGPARAM.CONTINUEMPRLEVELC1I7 has 18 observations and
> 9
> > variables.
> > NOTE: Compressing data set SIGPARAM.CONTINUEMPRLEVELC1I7 decreased size
> by
> > 0.00 percent.
> > Compressed is 1 pages; un-compressed would require 1 pages.
> > NOTE: DATA statement used (Total process time):
> > real time 0.01 seconds
> > cpu time 0.01 seconds
> >
>
|