HP3000-L Archives

October 2002, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ken Hirsch <[log in to unmask]>
Reply To:
Ken Hirsch <[log in to unmask]>
Date:
Thu, 24 Oct 2002 09:03:46 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
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 *

ATOM RSS1 RSS2