COBOL Compute

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

>COBOL COMPUTE Statement
The COBOL COMPUTE statement assigns the value of an arithmetic expression to one or more data items. The COBOL COMPUTE statement allows you to combine arithmetic operations without the restrictions on receiving data items that the rules for the ADD, SUBTRACT, MULTIPLY, and DIVIDE statements impose.

>COBOL COMPUTE Statement
The COBOL COMPUTE statement evaluates an arithmetic expression and stores the result in one or more data items.

>COBOL COMPUTE Statement
The COBOL COMPUTE statement evaluates an arithmetic expression and assigns the result to one or more data items.

>COBOL COMPUTE Verb
The COBOL COMPUTE verb allows you to combine several math operations in one statement, using familiar symbols instead of English-like sentances.

>Example of COBOL COMPUTE Statement
All the arthemetic, that can done using verb ADD, SUBTRACT, MULTIPLY, DIVIDE verbs can be done using COMPUTE statement.

This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

View e-Privacy Directive Documents

You have declined cookies. This decision can be reversed.

You have allowed cookies to be placed on your computer. This decision can be reversed.

Login

Who's Online

Member Login