COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-9
ADD
ADD
ADD TO
ADD TO adds the sum of one or more numeric values to one or more result data items;
for example,
ADD A B C TO D E
stores A+B+C+D in D and stores A+B+C+E in E.
Form Description
ADD TO
Adds the sum of one or more numeric values to one or more
result data items; for example,
ADD A B C TO D E
stores A+B+C+D in D
and stores A+B+C+E in E
ADD GIVING
Adds two or more numeric values and replaces the current
value of one or more result data items with that sum; for
example,
ADD A B C GIVING D E
stores A+B+C in both D and E
ADD CORRESPONDING
Adds numeric elements of one data structure to corresponding
numeric elements of another data structure (not
recommended)