got wrong data while converting Binary data Zoned decimal
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: got wrong data while converting Binary data Zoned decima
Actually, the lengths should be 10 and 5 -- I was looking at the 14 length you posted and didn't think through the data when posting earlier. A 2-byte binary value will be in the range of either -32768 to 32767 or 0 to 65535 depending on whether the value can be negative or not. A 4-byte binary value range will be -2147483648 to 2147483647 or 0 to 4294967296 depending on whether the value can be negative or not. Hence the 5 or 10 digits of zoned decimal data.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 7
- 1998
-
by sergeyken
View the latest post
Wed Dec 23, 2020 6:39 pm
-
- 3
- 6844
-
by socker_dad
View the latest post
Wed May 04, 2022 12:59 am
-
-
eliminate duplicates with different data
by cobol_dev » Fri Jun 03, 2022 3:47 am » in DFSORT/ICETOOL/ICEGENER - 7
- 1874
-
by cobol_dev
View the latest post
Wed Jun 15, 2022 10:44 pm
-
-
- 4
- 3272
-
by socker_dad
View the latest post
Fri Dec 31, 2021 5:28 am
-
-
Copying All Data Off An Old Mainframe
by zunebuggy » Wed Sep 25, 2024 1:10 am » in Mainframe Security - 0
- 1598
-
by zunebuggy
View the latest post
Wed Sep 25, 2024 1:10 am
-