COMPUTE command (COBOL)

The COMPUTE command assigns the value of an arithmetic expression to a specified reference. The COMPUTE keyword cannot be abbreviated.

Read syntax diagramSkip visual syntax diagram
>>-COMPUTE--reference--=--expression--;------------------------><

reference
A valid Debug Tool COBOL numeric reference.
expression
A valid Debug Tool COBOL numeric expression.

Usage notes

Examples

Refer to the following topics for more information related to the material discussed in this topic.