COBOL Manual for TNS/E Programs (H06.03+)
Procedure Division Verbs
HP COBOL Manual for TNS/E Programs—520347-003
9-248
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










