|
Ok, I see your point. However I still might have beat them into submission to accept just 2b 0. For anything else, adapt, or use a different type. Alas, all water under the bridge. Rob Berendt -- Group Dekko Services, LLC Dept 01.073 PO Box 2000 Dock 108 6928N 400E Kendallville, IN 46755 http://www.dekko.com Barbara Morris <bmorris@xxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 02/18/2004 10:28 AM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To rpg400-l@xxxxxxxxxxxx cc Fax to Subject Re: 1-Byte Integer data type in RPG rob wrote: ... > When they added the 1 byte support I wonder if the lack of a 1b field > was > either: > A) Because of a desire to get people to go to the more robust integer > B) Code that was automatically converted from 1 byte to 2 bytes under the > covers might break if they left it as 1 byte. Then I wrote: > Both, but mainly B) Then rob wrote: > I can respect that. > Perhaps this should be a lesson that in the future to NOT allow people to > go whilly nilly. If they mean two bytes, then code two bytes, etc. Oops, I misread your B) option. The reason that 1-byte binary could not be supported was that the B type was already defined so that 1B to 4B means 2 bytes and 5B to 9B means 4 bytes. It wasn't under the covers. I suppose we could have added some syntax to allow specifying both the number of decimal digits AND the number of bytes, but now your A) option comes into play. I'm not sure what you mean by "allow people to go whilly nilly". Remember that the B type is really a decimal type, and that although 2B-0, 2B-1, 3B-0 all occupy two bytes, they are three different types. _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.