Input field (CHGAMT) is defined as 17S 2 but has a negative value (-14.00) viewed as '0000000000000140}'
I have to first move this value into a character field and get it into a decimal format again (17S 2) so I can use the value to compare to another field defined the same way. Ultimately, I will need it to have the negative sign print in a field in an output file as 14.00- or -14.00.
I tried to move this value into a field defined as 17S 2 - but it drops the negative sign.
RPGLE iseries AS400
November 25, 2009 10:42 PM
December 1, 2009 4:48 PM