Packed Decimal Subtraction



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

Packed Decimal Subtraction

Postby krbnsol » Mon Aug 01, 2022 5:56 pm

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
krbnsol
 
Posts: 2
Joined: Mon Aug 01, 2022 5:36 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Packed Decimal Subtraction

Postby krbnsol » Mon Aug 01, 2022 10:14 pm

Found the solution after playing around with the various options. Hope I didn't waste anyone's time on this one.

thanks
krbnsol
 
Posts: 2
Joined: Mon Aug 01, 2022 5:36 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Packed Decimal Subtraction

Postby sergeyken » Tue Aug 02, 2022 4:07 am

FYI:

The formats like 9(5)V99 et.al. are all UNPACKED (or ZONED) DECIMALS, rather than PACKED DECIMALS.
Javas and Pythons come and go, but JCL and SORT stay forever.
User avatar
sergeyken
 
Posts: 408
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 6 times
Been thanked: 40 times


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post