|
Of course...thanks for the clarification. On 1/18/07, Vernon Hamberg <vhamberg@xxxxxxxxxxx> wrote:
Nope - hence the confusion - both 4,n and 5,n take up 3 bytes Rule is, add 1, then divide by 2 and round up. At 05:48 AM 1/18/2007, you wrote: >Packed? Divide by 2 and round up, right? > >On 1/18/07, Joe D <nike@xxxxxxxxxxxxxx> wrote: > > ----- Original Message ----- > > From: <Matt.Haas@xxxxxxxxxxx> > > > If you need to do the conversion of your > > > counter to hex, I think you can create a data structure that has a two > > > byte numeric field as the first sub field (my head exploded several > > > hours ago so I'm not going to look up that part) and then another sub > > > field for the character part. You should be able to pass the data > > > structure to whatever needs it at that point in the proper format. > > > > Doh! That seems to be what I was missing. Thanks again for the helpful > > hint! > > > > On a side note, am I the only one who gets confused when defining packed or > > binary fields? Remembering the rules about how many bytes it > will really be > > once packed is not actually hard, but it is not very intuitive either. > > > > Good night, > > JD > > > > -- > > 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. > > > > >-- >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. -- 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.