|
Hi,
I am trying to convert a statement that turns off the first four bits in a single byte field to free-form and am unsure of the best way to do that.
Original statement: C BITOFF '0123' BYTE
byte = %bitand(x'0F': BYTE);
x'0F' = 00001111 x'D9' = 11011001
So, it copies the bits that are in on BOTH fields, yielding: 00001001
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.