|
COBOL VERBS - MULTIPLY
MULTIPLY Verb
MULTIPLY verb.
MULTIPLY statement multiplies numeric items.
Format 1.
MULTIPLY < literal-1 / data-item-1 > BY data-item-2 ...
Format 2.
MULTIPLY < literal-1 / data-item-1 > BY < literal-2 / data-item-2 >
GIVING data-item-3 ...
Examples -
(a) MULTIPLY WS-A BY WS-B.
In above example, values in WS-A & WS-B will be multiplied and the result will be stored in WS-B.
(b) MULTIPLY WS-A BY WS-B GIVING WS-C.
In the example (b), values in WS-A & WS-B will be multiplied and the result will be stored in WS-C.
(C) MULTIPLY WS-A BY WS-B GIVING WS-C WS-D.
In the example (c), values in WS-A & WS-B will be multiplied and the result will be stored in WS-C , WS-D.
|
|