COBOL/400 Language Help

Format 1 (MULTIPLY)

Description
In Format 1, the value of identifier-1 or literal-1 is multiplied by the value of identifier-2; the product is then placed in identifier-2. For each successive occurrence of identifier-2, the multiplication takes place in the left-to-right order in which identifier-2 is specified. The composite of operands in an arithmetic statement can have a maximum of 30 digits.
Format 1 (MULTIPLY)
 
                                  *---------------------*
                                  V                     +
->->--MULTIPLY-*-identifier-1-*-BY--identifier-2--*-------*--->
             *-literal-1----*                   *ROUNDED*
 
 
->----*-----------------------------------------------*------>
     *--*----*--SIZE ERROR imperative-statement-1----*
        *-ON-*
 
 
->----*-------------------------------------------------*---->
     *--NOT--*----*---SIZE ERROR imperative-statement-2--*
            *-ON-*
 
 
->----*---------------*--------------------------------------><-
     *-END-MULTIPLY--*
 


[ Top of Page | Previous Page | Next Page | Table of Contents ]