COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-267
SUBTRACT CORRESPONDING
•
Precision
For any series of items involved in a subtraction, when their decimal points are
aligned, the composite picture must involve not more than 18 digits of
representation, or a size error condition can result (which can cause a run unit to
terminate abnormally with an arithmetic overflow condition). For information on
precision of subtraction, see ADD and SUBTRACT Statements.
•
ROUNDED and SIZE ERROR Phrases
See ROUNDED Phrase and SIZE ERROR Phrase for information on these
phrases.
SUBTRACT CORRESPONDING
SUBTRACT CORRESPONDING subtracts elements of one data structure from
corresponding elements of another data structure.
Caution. SUBTRACT CORRESPONDING is not recommended, because minor changes to
one data structure can change the correspondence between its elements and those of the
other data structure, and this is difficult to detect.
SUBTRACT
FROM
END-SUBTRACT
ON
SIZE ERROR
NOT
ON
SIZE ERROR
imperative-stmt-2
imperative-stmt-1
group-1
group-2
CORRESPONDING
CORR
ROUNDED
VST229.vsd