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 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 16 Jul 2002 15:54:16 -0400
Reply-To:     "Dorfman, Paul" <Paul.Dorfman@BCBSFL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Dorfman, Paul" <Paul.Dorfman@BCBSFL.COM>
Subject:      Re: "number" question...
Comments: To: tin-shun-jimmy chan <jimmy.chan@HEC.CA>
Content-Type: text/plain; charset=iso-8859-1

Jim,

I am not sure the statement in your actual program looks exactly the way you present it here. The only way what you described might have happened would be having compared a numeric variable VOLUME with a character literal 'O' (capital letter 'O'), but for that to have heppened, the literal must have been in quotes. Otherwise, the O would have been interpreted as a variable named O. In this case, even if its value at the time of evaluaion had actually been O = 'O', the log would have indicated exacly that: it would have said <Invalid numeric data, O='O'>. So, if in reality you have

if volume = 'O' then nob = 1 ;

just replace O (letter) with 0 (zero).

Kind regards, ================== Paul M. Dorfman Jacksonville, FL ==================

> I have a very simple question regarding a "number" question. I have to > do the following logic: > ... > if volume = 0 then nob = 1; > ... > But in the log file, it indicates that it's a invalid numeric data, > volume = '0' . So what is the problem here ? (My database was a .csv > file and imported SAS.) > > Can you tell why it doesn't work ? > > Jim >

Blue Cross Blue Shield of Florida, Inc., and its subsidiary and affiliate companies are not responsible for errors or omissions in this e-mail message. Any personal comments made in this e-mail do not reflect the views of Blue Cross Blue Shield of Florida, Inc.


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