Subject: | |
From: | |
Reply To: | |
Date: | Thu, 24 Oct 2002 09:03:46 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
From: "Rao, Raghu" <[log in to unmask]>
> Hi,
>
> I am trying to store records into detail dataset. The particular field
that
> is giving trouble to me is a I2 field {defined as S9(09) COMP}. If I move
> zeroes to this field and perform a DBPUT, everything works out fine.. But
> when I have a valid numeric number in this field, it stores it with
trailing
> zeroes..
>
> For ex., I am moving value 1298 into this field and it gets stored as
> 129800000.
There can't literally be stored trailing zeros because it is a binary field,
not a decimal field, although the binary equivalent of 129800000 might be
stored there. Are you sure your field isn't defined as S9(4)v9(5) in your
program? You might want to read through the compiler listing to make sure
you are compiling what you think you're compiling.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|