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 (December 2010, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 6 Dec 2010 14:07:07 -0500
Reply-To:     Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject:      Re: Apply formula from variable

what's the goal is, don't really understand...

data test2; input col_EXP : $50. col_DT date9.; call symput ("a"!!left(put(_n_,6.)),col_exp); cards; intnx('day',today(),2) 8DEC2010 intnx('day',today(),10) 16DEC2010 ; run;

data _null_; y=&a1; z=&a2; put y date9. " and " z date9.; run;

???

Gerhard

On Mon, 6 Dec 2010 13:31:03 -0500, Arthur Tabachneck <art297@ROGERS.COM> wrote:

>Interesting question posed over on one of the SAS forum pages: > >OP has: > >DATA test; > length col_EXP $50; > col_EXP="intnx('day',today(),2)";output; > col_EXP="intnx('day',today(),10)";output; >RUN; > >OP wants (if run today): > >data test2; > input col_EXP $50. col_DT date9.; > cards; >intnx('day',today(),2) 8DEC2010 >intnx('day',today(),10) 16DEC2010 >; >run; > >Any direct way of accomplishing that other than creating and running an >include file? > >Art


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