|
I may be going against the grain here, but if the documentation says 4-byte binary I just specify 4-byte binary in my code, as shown below, which works just fine, and the way we always used to define binary fields prior to RPGIV. 0085.00 D DS 0086.00 D MSGDLN 1 4B 0 The problem lies if you code the field using the new sexy type 'S' for a standalone field, when you only get the opportunity to specify the number of DIGITS, rather than bytes. So, keep your 4Bs, but remember to code the field as part of a data structure, not a standlone field. This way, the numbers do appear to make sense!(And we don't need to know that the machine can get 10 digits in 4 bytes!) Hope this provides some illumination...
As an Amazon Associate we earn from qualifying purchases.
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.