This is not a DB2 limitation, rather something to do with the RPG variable
declaration. Shouldn't you use 10I for an integer data type?
Celebrating 11-Years of SQL Performance Excellence on IBM i, i5/OS and
OS/400
www.centerfieldtechnology.com
-----Original Message-----
Subject: Binary fields in DB2 and RPG
This is sort of an RPG thing, but really more of a DB2 issue, which is
why I posted it here.
Dave Odom ought to love this. It may have been discussed before, but I
didn't find it. Anyway, if you declare a field in SQL as type INT, it
is actually declared in DB2 as a 9B0 field. This is fine right up until
the time you try to write a value over 999,999,999. For example:
1,198,368,000, which is the number of seconds between January 1, 2008
and January 1, 1970.
Such joy.
Joe
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.