COMPUTE

Short Reference

Syntax Forms


Arithmetic Expression

1. [COMPUTE] result = arith_exp.

Bit Expression

2. [COMPUTE] result = bit_exp.

Effect

This statement assigns the result of an arithmetic expression arith_exp to a variable result. You can omit the keyword COMPUTE. The data type of result must be either a numeric or a byte-like data object depending on the expression.

Note

In addition to the main variants, you can use the following variants: