COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
means store D - (A + B + C) in D and store E - (A + B + C) in E.
• Specifying the Same Data Item for More Than One Result
If more than one minuend-result specifies the same data item, the final value of that item
reflects multiple subtractions of the intermediate sum. For example,
SUBTRACT A FROM B B
means the final value of B is (B - A) - A.
• Operand Identification
For each minuend-result, the process of operand identification occurs just prior to the
“subtract and store” operation; therefore, in
SUBTRACT A, B, C FROM I, I, X(I)
the subscript is not evaluated until the sum of A, B, and C is subtracted twice from I.
• Arithmetic Operations
See Arithmetic Operations (page 257) for information on data conversion and alignment,
intermediate results, multiple results (and subscript evaluation), and incompatible data.
• 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 (page 262).
• ROUNDED, SIZE ERROR, and NOT SIZE ERROR Phrases
See ROUNDED Phrase (page 244) and SIZE ERROR Phrase (page 244) 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.
468 Procedure Division Verbs










