× 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.



Gary... that link is to the root of the Information Center, so it'd be hard to tell which specific piece of info you're referring to from that link.

But, DB2 integers should allow values from -2147483648 to 2147483647. So, it will allows 10-digit numbers as long as they are less than or equal to 2147483647. If it really only allows 9-digit numbers, it's not a true integer!

But, having said that, this thread is about RPG not DB2. RPG supports 64-bit integers, so the %INT BIF should handle numbers as large as 9223372036854775808. (Try to memorize that, haha) So that's most 19-digit numbers, and all 18-digit numbers that it will handle.

Using %DEC() of course lets yo handle up to 63 digits, but how often does that come up?



On 7/11/2013 2:02 PM, Gary Thompson wrote:
This link:
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/index.jsp

seems to say DB2 integers are 0 to 9 digits


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.