Previous Topic: Examples

Next Topic: Conditional Processing

COMPUTE Statement

The COMPUTE statement performs an arithmetic operation on two fields, or one field and a constant, and creates a new field containing the result.

The COMPUTE statement is executed after any SELECT or IGNORE statements in a processing step have been executed. If you want to process a COMPUTE statement before SELECT and IGNORE processing begins, use the NOW COMPUTE statement instead.