COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-136
MULTIPLY GIVING
MULTIPLY GIVING
MULTIPLY GIVING multiplies two data items and stores the product in one or more
other data item(s); for example, the statement
MULTIPLY A BY B GIVING C D E
means store A x B in C, D, and E.
multiplicand
is a numeric literal or the identifier of an elementary numeric data item.
multiplier
is a numeric literal or the identifier of an elementary numeric data item.
result
is the identifier of an elementary numeric or numeric edited data item that is to
receive the product.
ROUNDED
specifies that the product is to be rounded before being stored in result.
VST185.vsd
MULTIPLY multiplicand multiplierBY GIVING
END-MULTIPLY
SIZE ERROR
NOT
ON
ERROR
imperative-stmt-2
imperative-stmt-1
SIZE
result
ROUNDED
ON