Theoretically, I studied like the end of character in comp-3 tells whether it is positive or negative value
- C - Indicates positive value
- D - Indicates negative value
Is this not applicable for new version of COBOL in mainframes?
01 WS-COMP3 PIC S9(5) COMP-3 VALUES -12.
DISPLAY WS-COMP3
OUTPUT: 0001K
For above piece of code, I am getting the end of character as K instead of D The value K is the substitution of -2 0 ==> } -1 ==> J, -2 ==> K ....