COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-262
SUBTRACT
SUBTRACT
SUBTRACT computes differences between numeric values.
Form Description
SUBTRACT FROM
Subtracts one or more values from the values of one
or more identifiers and stores the results in the
identifiers; for example,
SUBTRACT A B C FROM D E
stores D - (A + B + C) in D
and stores E - (A + B + C) in E
SUBTRACT GIVING
Subtracts one or more values from the values of one
or more identifiers and stores the results in another
set of identifiers; for example,
SUBTRACT A B C FROM D GIVING E
stores D - (A + B + C) in E
SUBTRACT CORRESPONDING
Subtracts elements of one data structure from
corresponding elements of another data structure