cobolMULTIPLY statement

Remarks

The MULTIPLY statement multiplies numeric data setting the result to one or more identifiers of numeric type.

MULTIPLY statement syntax diagram

Where rounded-phrase is

rounded-phrase

Some MULTIPLY formats

MULTIPLY 5 BY a

MULTIPLY a BY b
    ON SIZE ERROR
        PERFORM error-handling
    NOT ON SIZE ERROR
        PERFORM who-does-that
END-MULTIPLY

MULTIPLY a BY b GIVING x ROUNDED MODE IS PROHIBITED
                       y ROUNDED MODE IS NEAREST-EVEN
                       z ROUNDED