|
Random thought . . . You write an RPG4 program to receive the packed/char and return the numeric. You could make it flexible by passing in the length to substring out and unpack. Once in the RPG, it is straight-forward. >>> vhamberg@centerfieldtechnology.com 02/03/03 02:09PM >>> This didn't work, Jim - data type mismatch.&CHAR has to be a string representation of a number, not a hex value. But something close can be done with %BIN. This becomes the same problem as displaying the hex-equivalent of a string, which has been solved before. Don't know if my solution is the same. Negative numbers are not covered here - need to check for value of last nybble of last byte. And number of decimals needs to be known ahead of time.
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.