COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-265
SUBTRACT GIVING
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, SIZE ERROR, and NOT SIZE ERROR Phrases
See ROUNDED Phrase and SIZE ERROR Phrase for information on these
phrases.
SUBTRACT GIVING
SUBTRACT GIVING subtracts one or more values from a value of one identifier and
stores the results in another set of identifiers.
subtrahend
is a numeric literal or the identifier of a numeric elementary data item.
SUBTRACT subtrahend FROM
ROUNDED
END-SUBTRACT
ON
SIZE ERROR
minuend
GIVING
NOT
ON
SIZE ERROR
imperative-stmt-2
imperative-stmt-1
result
VST228.vsd