|
> >> . . . So, if you define it as being a 4B field, then if the API (or whatever) returns >> a value larger than 9,999 it would be truncated with unpredictable results. >> If you define the field as 5I however, there is no truncation possible. . . >> > >Okay, makes sense, so why then are the parameters for the API's defined binary? And >the follow up question, since the API parameters are defined as binary, isn't the >quantity/value limitation therein inheirant (or would it be possible that even though >the API's specify binary, they may pass back information that would overflow a binary >field, but not an integer)? > >Bill Hmm I dunno, but whenever I have looked at a dump the binary fields contain what look awfully like hex values to me, so a 4B field could contain up to FFFF (65535 in decimal). Cheers. Evan +--- | 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 mailing list archive is Copyright 1997-2025 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.