In some other languages, one of the things that could be spread would be to "divide by a multiple of 10", respectively, the corresponding factor.
However, never consider this with COBOL. "Separation" is "expensive."
05 input-packed-decimal
PACKED-DECIMAL PIC 9(7).
Then:
05 FILLER
REDEFINES input-packed-decimal.
10 ipd-split-two-and-five
PACKED-DECIMAL PIC 99V9(5).
01 two-digits PIC 99.
01 five-digits PIC 9(5).
01 FILLER
REDEFINES five-digits.
05 five-digits-as-decimals PIC V9(5).
MOVE ipd-split-two-and-five TO two-digits
five-digits-as-decimals
two-digits five-digits , .
:
01 ws-input-seven PIC 9(7).
01 FILLER
REDEFINES ws-input-seven.
05 two-digits PIC 99.
05 five-digits PIC 9(5).
MOVE input-packed-decimal TO ws-input-seven
( S PICture).
, two-digits, MOVE , .
, PACKED-DECIMAL BINARY ( IBM COMP-3 COMP/COMP-4/COMP-5). , , . REDEFINES , , , " " . , , REDEFINES.
, :
05 FILLER
REDEFINES input-packed-decimal.
10 ignore-one-use-2nd-next-five
PACKED-DECIMAL PIC 9V9(5).
, PACKED-DECIMAL PIC 99V9 (5), , . , .
" REDEFINES", WORKING-STORAGE , , .
, , . , . , , , .
"Var (n)" , .