× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



 >>  If I create a table with a SMALLINT it is shown as being defined as
being 4 digits long.  I can insert a 5 digit long number via SQL but RPG
does not support this length of data.

It does - but not by default since the I and U data types were added long
after the database supported binary fields.  By default RPG maps binary
fields to type B and hence there is a limit of 4 digits in a 2 byte field.
Have you tried defining the field(s) "by hand" in your program with a 5I 0
definition?  I would have thought that would work.  On the latest release
you can deal with it by using the compiler directive EXTBININT(*YES).  This
forces the compiler to do things the way you want!!  I thought this came out
a release or two back - but it shows up as new for V5R2 so I guess I'm
mismembering - senior moments come far too often these days!

Jon Paris
Partner400




As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.