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 (April 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 17 Apr 2008 11:02:27 -0500
Reply-To:     "data _null_," <datanull@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "data _null_," <datanull@GMAIL.COM>
Subject:      Re: %Eval and dates
Comments: To: Kevin Martino <>
In-Reply-To:  <>
Content-Type: text/plain; charset=ISO-8859-1

The short answer is %SYSEVALF. But why are you doing this kind of work using macro language? I don't think this is the best "path".

%let start_date='01Dec2005'd; %let end_date='30Nov2006'd; %let days=%sysevalF(&end_date.-&start_date.); %put _user_;

On Thu, Apr 17, 2008 at 10:36 AM, Kevin Martino <> wrote: > Hi, > > I kind of know why this code is not working, with "A character operand was > found in the %EVAL function ..." error message, but not sure what the > solution is? Please could someone help? > > %let start_date='01Dec2005'd; > %let end_date='30Nov2006'd; > %let days=%eval(&end_date.-&start_date.) > > > Thanks. >

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