


The MULTIPLY statement performs arithmetic multiplication.
General Format
Format 1
MULTIPLY source BY { result [ROUNDED] } ...
[ ON SIZE ERROR statement ]
[ NOT ON SIZE ERROR statement ]
[ END-MULTIPLY ]
Format 2
MULTIPLY source BY source
GIVING { result [ROUNDED] } ...
[ ON SIZE ERROR statement ]
[ NOT ON SIZE ERROR statement ]
[ END-MULTIPLY ]
Syntax Rules
1. Source is a numeric literal or numeric data item.
2. Result is a numeric or numeric edited data item. In Format 1, result may not be numeric edited.
3. Statement is an imperative statement.
General Rules
1. In Format 1, each result is multiplied by source. The product is stored back in result.
2. In Format 2, the two source operands are multiplied together. The product is stored in each result variable.
3. Additional information can be found in the sections covering Arithmetic Operations (6.4.1), Multiple Receiving Fields (6.4.2), the ROUNDED option (6.4.3), and the SIZE ERROR option (6.4.4).