The COMPUTE statement provides the ability to perform general arithmetic computations.

COMPUTE{ result [ROUNDED] } ... { = } arithmetic-expr { EQUAL } [ ONSIZEERRORstatement ] [NOTONSIZEERRORstatement ] [END-COMPUTE]

`result`is an elementary numeric or numeric-edited data item.`arithmetic-expr`is any arithmetic expression.`statement`is an imperative statement.

- The
`arithmetic-expr`is evaluated and assigned to each result variable. - Additional information can be found in the help topics covering Arithmetic Operations, Multiple Receiving Fields, the ROUNDED Option, and the SIZE ERROR Option.