COMPUTE statement

Other topics

Remarks:

The COMPUTE statement allows for algebraic calculation expressions.

compute statement

Rounded phrase is

rounded phrase

Advice: Use spaces around all components

COMPUTE answer = 3*var-1

That is a reference to the variable var-1, and not var - 1.

COMPUTE answer = 3 * var - 1

Recommended, opinion.

Contributors

Topic Id: 6726

Example Ids: 22877

This site is not affiliated with any of the contributors.