--- Reggie Monroe <[log in to unmask]> wrote:
> I seem to be getting the below error when using the decimal command.
> Do anyone have an idea?
>
> 40 :SETVAR file_record ''
> 41 :SETVAR sess ''
> 42 :INPUT file_record < t1.files
> 43 :SHOWVAR file_record
> 44 FILE_RECORD = Y 5 PM
> 45
> 46 :SETVAR sess word(file_record)
> 47 :SETVAR ampm word(file_record,,-1)
> 48 :SHOWVAR ampm
> 49 AMPM = PM
> 50 : SETVAR hour decimal(word(file_record,,-2))
> 51 ^
> 52 A string operand was found in a numeric expression. (CIERR 9870)
i'm not terribly sure what you're trying to accomplish -- if you want
hour to be numeric or string.
if hour is to be a string, all that you need is:
setvar hour word(file_record,,2)
(not real sure why you were using -2....)
if hour needs to be numeric, you'll want the following:
setvar hour ![word(file_record,,2)]
hth - d
Donna Garverick, HP-CSA Sr. System Programmer
dgarverick -at- longs -dot- com
925-210-6631 Longs Drug Stores
Come, my friends, 'Tis not too late to seek a newer world.
Tho' much is taken, much abides; and tho'
We are not now that strength which in old days
Moved earth and heaven, that which we are, we are.
"Ulysses", A. Tennyson
>>>MY opinions, not Longs Drug Stores'<<<
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|