COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-133
MULTIPLY BY
MULTIPLY BY
MULTIPLY BY multiplies one data item by one or more other data items and stores the
result(s) in the other data item(s); for example, the statement
MULTIPLY A BY B C D
means store A x B in B, A x C in C, and A x D in D.
multiplicand
is a numeric literal or the identifier of an elementary numeric data item.
multiplier
is the identifier of an elementary numeric data item.
ROUNDED
specifies that the product is to be rounded before being stored as the new value of
multiplier.
imperative-stmt-1
is an imperative statement to be executed when a size error is detected in the
multiplication or in storing the product in multiplier.
MULTIPLY
multiplier
BYmultiplicand
ROUNDED
ON
SIZE ERROR
NOT
ON
SIZE ERROR
imperative-stmt-2
imperative-stmt-1
END-MULTIPLY
VST184.vsd