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...
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.
|