COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-13
ADD GIVING
imperative-stmt-1
is an imperative statement to be executed if a size error occurs during the addition
of addends or the storing of a result.
imperative-stmt-2
is an imperative statement to be executed if no size error occurs during the
addition of addends or the storing of a result.
END-ADD
ends the scope of the ADD statement and makes it a delimited-scope statement. If
you omit END-ADD but include the SIZE ERROR or NOT SIZE ERROR phrase,
the ADD statement is a conditional statement and ends at the next period
separator.
Usage Considerations:
•
Changing Addend Values
The ADD GIVING statement does not change the value of an addend unless you
also specify that addend for result.
•
See these usage considerations in ADD TO:
°
Operand Identification Order
°
Arithmetic Operations
°
Precision
°
ROUNDED, SIZE ERROR, and NOT SIZE ERROR Phrases