|
D PackedToInt pr 10i 0 extproc('QXXPTOI') D PTR * value options(*string) D Digits 10i 0 value D Fraction 10i 0 value
This procedure works correctly for all my packed fields except one.
0435065 209140F
The returned value is -123063971 when it should be 240,395,104,605.
The RPG code being executed is:
NumberFld = PackedToInt(DataPtr+FldOffset:FldLen:0);
FldOffset=363 which is the place in the data record and FldLen = 7
Thanks,
Rich Dotson RT3 Consulting Services, Inc. P.O. Box 126 Lorain, OH 44052-0126
eMail: Rich_Dotson@xxxxxxxxxxx
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.