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



d $nuller         s              2b 0 based($nullOffset) dim(23)
d $nullOffset     s               *   Inz(*Null)

Some folks haven't run into this yet, so it bears politely repeating that this is a FAQ. (Maybe an archive search too!) The problem is not the use of 'B'; rather, it is a misunderstanding of what the documentation means by the use of the word Binary.

http://faq.midrange.com Search (lower left corner) for the word binary. You're looking for 'What does Binary 4 mean in documentation.')
  --buck

ps The Binary data type in RPG can't hold large numbers (only up to 9 digits) so that's why most people recommend the 'I' or 'U' data type. However, integer data types cannot hold decimal positions (i.e. 9b 2) so there is a legitimate use for the 'B' data type when dealing with existing database definitions.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.