Page 1 of 1

Packed Decimal Subtraction

PostPosted: Mon Aug 01, 2022 5:56 pm
by krbnsol
I have two field on my input record that are in packed decimal format(2 decimal positions) one is 9(5)v99 and the other is 9(3)v99, my output record i would like to get the value of FLD2 subtracted from FLD1 in packed decimal format 9(5)v99, is this possible with syncsort. Any examples would be apprcieated.

thanks

Re: Packed Decimal Subtraction

PostPosted: Mon Aug 01, 2022 10:14 pm
by krbnsol
Found the solution after playing around with the various options. Hope I didn't waste anyone's time on this one.

thanks

Re: Packed Decimal Subtraction

PostPosted: Tue Aug 02, 2022 4:07 am
by sergeyken
FYI:

The formats like 9(5)V99 et.al. are all UNPACKED (or ZONED) DECIMALS, rather than PACKED DECIMALS.