COMP-3 , + 1, 2. , 987, 3 +1, 2 = 2. , Comp- 3 2 +999 -999 .
15 015C. , C D, "C" , "D" . 4 .
, 7- 7 +1 = 8/2 = 4 . , comp-3 4 +999,9999 -999,9999 .
, , .
FIELD-NAME-3 PIC S9 (3) V9 (6) COMP-3.
we need to define a decimal field, for example DEC-PORTION V9 (6) comp-3, and then move FIELD-NAME-3 to DEC-PORTION to save the decimal part of the value.
Thus, we can have the decimal part of a number separated from the full number.
Shivakumar bhagirathan
source
share