Date: Wed, 25 Oct 2006 19:48:42 GMT
Reply-To: kenneth_m_lin@SBCGLOBAL.NET
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: kenneth_m_lin@SBCGLOBAL.NET
Organization: SBC http://yahoo.sbc.com
Subject: Re: online-help code not working/defining macro in datastep
How do you know it didn't work? There's no error message or anything to
indicate that it had failed.
<toby989@hotpop.com> wrote in message news:eho2q3$cv3$1@news.Stanford.EDU...
> Hi All
>
> I was trying to define a macro variable in a datastep, just like as in the
> example of the online-help (Base SAS > SAS Macro Reference > Understanding
> ans Using > Macro Variables > Macro Variables Defined by User).
> The code provided there does not work.
>
>
> data _null_;
> set psdata.ps2004msh end=final;
> if region=1 then n+1;
> if final then call symput('number',trim(left(n)));
> run;
> footnote "&number Observations have AGE>20";
>
>
> Any Ideas?
>
> Thanks Toby
>
> SAS 9.1.3 on win2k
>
>
>
>
>
> The log
>
> 13 data _null_;
> WARNING: The Base Product product with which DATASTEP is associated will
> be expiring soon, and is
> currently in warning mode to indicate this upcoming expiration.
> Most typically this
> warning period runs for 45 days. Please run PROC SETINIT to
> obtain more information on
> your warning period.
> 14 set psdata.ps2004msh end=final;
> 15 if region=1 then n+1;
> 16 if final then call symput('number',trim(left(n)));
> 17 run;
>
> NOTE: Numeric values have been converted to character values at the places
> given by:
> (Line):(Column).
> 16:49
> NOTE: There were 112 observations read from the data set PSDATA.PS2004MSH.
> NOTE: DATA statement used (Total process time):
> real time 0.00 seconds
> cpu time 0.00 seconds
>
>
> 18 footnote "&number Observations have AGE>20";
|