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 (July 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 10 Jul 2002 13:45:57 -0400
Reply-To:     William Lu <luwp@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         William Lu <luwp@HOTMAIL.COM>
Organization: Bell Sympatico
Subject:      Re: Automatic Axis Statement

Hi E.S. Axis statement cannot work with functions. You may define a macro. Regards,William data _null; todate=(today()-weekday(today())); call symput("todate",todate); run; axis1 order = ('06oct01'd to &todate by 7);

"E. S." <sasq98@YAHOO.COM> wrote in message > Hi all, > > I have a problem that seemed trivial when I looked at it first but that > now is giving me all kinds of headaches. > > I have an axis statement that looks like this: > > axis1 order = ('06oct01'd to '29jun02'd by 7); > > It works fine but now I want to be able to change the endpoints by > using a formula. Something like: > > axis1 order = ('06oct01'd to (today()-weekday(today())) by 7); > > I get an error when I try that, can anybody tell me how could I code it > soo that I don't have to be manually updating this axis statement every > week? > > Thanks a lot, > > Ed > > > > __________________________________________________ > Do You Yahoo!? > Sign up for SBC Yahoo! Dial - First Month Free >

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