COMPUTE statement.

The COMPUTE statement assigns to one or more data items the value of an arithmetic or boolean expression.

Format.

          COMPUTE { identifier-1 [ ROUNDED ] } ... = arithmetic-expression-1

                [ [ ON ] SIZE ERROR imperative-statement-1 ]
                [ NOT [ ON ] SIZE ERROR imperative-statement-2 ]

                [ END-COMPUTE ]