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
Packed Decimal Subtraction
-
- Posts: 2
- Joined: Mon Aug 01, 2022 5:36 pm
- Skillset: DB2 DBA, COBOL, JCL, Postgres, DVM,
- Referer: friend
Re: Packed Decimal Subtraction
Found the solution after playing around with the various options. Hope I didn't waste anyone's time on this one.
thanks
thanks
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: Packed Decimal Subtraction
FYI:
The formats like 9(5)V99 et.al. are all UNPACKED (or ZONED) DECIMALS, rather than PACKED DECIMALS.
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.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Array processing and Table handling with packed decimal
by rogerstrycova » Tue Oct 26, 2021 3:55 pm » in IBM Cobol - 2
- 1702
-
by Robert Sample
View the latest post
Wed Oct 27, 2021 1:12 am
-
-
-
How to sum a decimal value using sort
by hkaur7087 » Thu Aug 05, 2021 2:19 pm » in DFSORT/ICETOOL/ICEGENER - 4
- 2347
-
by sergeyken
View the latest post
Thu Aug 05, 2021 7:48 pm
-
-
- 7
- 1996
-
by sergeyken
View the latest post
Wed Dec 23, 2020 6:39 pm