Date: Thu, 11 Nov 1999 11:39:59 -0500
Reply-To: Dennis Diskin <Dennis.Diskin.B@BAYER.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Dennis Diskin <Dennis.Diskin.B@BAYER.COM>
Subject: Re: Bloody macro language!
Content-Type: text/plain
BRUCE,
%EVAL only handles integer arithmetic.
I quote from the SAS Macro Language Reference:
"When %EVAL encounters a value conaining a period, it displays an error
message."
Dennis Diskin
"DDA.RFC-822=SAS-L@VM.MARIST.EDU/P=Internet/A= /C=us" on 11/11/99 11:23:09 AM
Please respond to "DDA.RFC-822=b.rogers@virgin.net/P=BAYER/A=TELEMAIL/C=US" @
X400
To: "DDA.RFC-822=SAS-L@VM.MARIST.EDU/P=Internet/A= /C=us"@X400
cc:
Subject: Bloody macro language!
I Hates it! I does.
15238 %let ps = 9.25 6 ;
15239 %let x = %eval(%scan(&ps,1,%str( ))*1440) ;
ERROR: A character operand was found in the %EVAL function or %IF condition
where a numeric
operand is required. The condition was: 9.25*1440
If that's not numeric, I don't know what is ! Anyone got a work-around for
this?
Bruce
email replies to b.rogers@virgin.net please.