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 (February 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Toby Dunn <tobydunn@HOTMAIL.COM>

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;


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