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 (November 1999, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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>
Comments:     To: "- *b.rogers@virgin.net" <b.rogers@virgin.net>
From:         Dennis Diskin <Dennis.Diskin.B@BAYER.COM>
Subject:      Re: Bloody macro language!
Comments: To: SAS-L@LISTSERV.VT.EDU
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.


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