Let's understand Mainframe
Home Tutorials Interview Q&A Quiz Mainframe Memes Contact us About us

Module 6: Procedure Division


COBOL MULTIPLY Verb

  • MULTIPLY verb is used to multiply two or more numeric values and store the final result
  • Basic syntax:-
    Format 1:-

    MULTIPLY {identifier-1/literal-1} BY identifier-2 [, identifier-3]…

    Format 2:-

    MULTIPLY {identifier-1/literal-1} BY {identifier-2/literal-2} [, {identifier-3/literal-3}]… GIVING identifier-4 [, identifier-5]…

  • Below table will help you understand few possible operations using MULTIPLY
  • When GIVING option is used, then only we can use numeric-literal in place of identifier-2, identifier-3
  • Last named operand must never be literal as the resultant value is always stored there.






© copyright mainframebug.com
Privacy Policy