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



Take from the System API Reference 1.2.2.3

 "For API BINARY(4) fields, RPG developers should use 
either positional notation or a length of 5 to 9 in order to allocate 
a 4-byte binary field"

It makes no mention of 4 byte integer fields, does this mean all my 9B 0
definitions have a potential error
Even some of the API data structures in QSYSINC use 9B 0.

>-----Original Message-----
>From: bmorris@ca.ibm.com [mailto:bmorris@ca.ibm.com]
>Sent: Friday, January 14, 2000 1:38 AM
>To: MIDRANGE-L@midrange.com
>Subject: Re: Open Source RPG
>
>
>
>
>
>>Date: Thu, 13 Jan 2000 15:04:22 -0600
>>From: "L. S. Russell" <leslier@datrek.com>
>>
>>One last submission and I won't bother you guys anymore (today).
>>I put a copy source of API prototypes out on my site as open source.
>> ...
>
>Leslie, I notice that you use 9B 0 for the subfields and 
>parameters that
>are defined as BIN(4) in the API manual.  That's ok 99% of the 
>time, but
>occasionally you'll get a value returned that is within the range of
>4-byte integers (which can go up to 2,147,483,647) but outside 
>the range
>for 4-byte binary (which only goes up to 999,999,999).  If you're lucky
>you get an exception; if you're unlucky your program will silently use
>the last 9 digits of the value.
>
>You should always use 10i 0 instead of 9B 0 for BIN(4).
>
>I tried to use "report a bug" but the link didn't work.  (I would have
>just written to you directly, but I don't like to miss a chance to
>foam at the mouth publicly about 9B 0 :-)
>
>Barbara Morris
>
>
>+---
>| This is the Midrange System Mailing List!
>| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
>| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
>| To unsubscribe from this list send email to 
>MIDRANGE-L-UNSUB@midrange.com.
>| Questions should be directed to the list owner/operator: 
>david@midrange.com
>+---
>
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.