Date: Mon, 20 Feb 2006 12:53:57 -0500
Reply-To: SUBSCRIBE SAS-L Chandra Gadde <ddraj2015@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: SUBSCRIBE SAS-L Chandra Gadde <ddraj2015@GMAIL.COM>
Subject: Re: Macro Variable in Data Step
Toby,
I really don't know how can Iuse vvaluex or vvalue in this example. Could
you please give me a hint?
Thnaks,
>Chandra,
>In general you cant use the call symput in the same step that you define
>it
>and unless you are Ian I wouldnt recommend it.
>Looking over your problem you need vvaluex or vvalue not call symput.
>Toby Dunn
From: SUBSCRIBE SAS-L Chandra Gadde <ddraj2015@GMAIL.COM>
Reply-To: SUBSCRIBE SAS-L Chandra Gadde <ddraj2015@GMAIL.COM>
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: Macro Variable in Data Step
Date: Mon, 20 Feb 2006 12:36:08 -0500
Hi,
I did use this but still I couldn't resolve the macro variable y.
call symput( "y", left(month(sld_dt_setmt))) ;
data unsold__rr
format dt_mkt_rqstd_sll datetime22.3;
set monthly_invn;
if sld_dt_setmt > '01JAN1960'd
then
call symput( "y", left(month(sld_dt_setmt))) ;
amt_sld = 0;
if amt_sld_upb_rstrtd&y > 0
then do;
dt_mkt_rqstd_sll = sld_dt_setmt*24*60*60;
amt_sld = amt_sld_upb_rstrtd&y;
end;
run;