1. MULTIPLY

The MULTIPLY statement multiplies numeric items and stores the results in the specified data item.

  • Format 1

    In format 1, identifier-1 or literal-1 is multiplied by identifier-2, and the result is stored in identifier-2.

    If multiple identifier-2s are specified, a multiplication operation between identifier-2 and identifier-1 or literal-1 is repeated from left to right, and the results are stored in identifier-2.

    figure pd multiply format1
    MULTIPLY Statement Format 1
  • Format 2

    In format 2, identifier-1 or literal-1 is multiplied by idetifier-2, and the result is stored in identifier-3.

    figure pd multiply format2
    MULTIPLY Statement Format 2

The following items are specified in the statement.

  • identifier-1, identifier-2

    • identifier-1 and identifier-2 must be elementary numeric data items.

  • literal-1, literal-2

    • literal-1 and literal-2 must be numeric literals.

  • identifier-3

    • identifier-3 must be an elementary numeric data item or an elementary numeric-edited data item.

  • ROUNDED phrase

    • For more information about the ROUNDED phrase, refer to ROUNDED Phrase.

  • SIZE ERROR phrase

  • END-MULTIPLY phrase

    • The END-MULTIPLY phrase is used to explicitly specify the scope of the MULTIPLY statement.