sign stored in Packed Decimal fields and Zoned Decimal field
Moderator: Moderator Group
sign stored in Packed Decimal fields and Zoned Decimal field
How is sign stored in Packed Decimal fields and Zoned Decimal fields?
-
- Member
- Posts: 9
- Joined: Wed Jul 14, 2010 11:17 am
- Location: India
Packed decimal:
Signed numeric -
+1234 ---> in hex
024
13C
-1234 ---> in hex
024
13D
Unsigned numeric -
1234 ---> in hex
024
13F
Zoned Decimal:
Signed numeric -
+1234 ---> 123D in EBCDIC
-1234 ---> 123M in EBCDIC
Unsigned numeric -
1234 ---> 1234 in EBCDIC
How the sign is punched?
} -0
{ 0
A 1
B 2
C 3
D 4
E 5
F 6
G 7
H 8
I 9
J -1
K -2
L -3
M -4
N -5
O -6
P -7
Q -8
R -9
Signed numeric -
+1234 ---> in hex
024
13C
-1234 ---> in hex
024
13D
Unsigned numeric -
1234 ---> in hex
024
13F
Zoned Decimal:
Signed numeric -
+1234 ---> 123D in EBCDIC
-1234 ---> 123M in EBCDIC
Unsigned numeric -
1234 ---> 1234 in EBCDIC
How the sign is punched?
} -0
{ 0
A 1
B 2
C 3
D 4
E 5
F 6
G 7
H 8
I 9
J -1
K -2
L -3
M -4
N -5
O -6
P -7
Q -8
R -9
"By failiing to prepare, you are preparing to fail." - Benjamin Franklin
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page