Loading...
Select Version
Syntax rules
The identifier following the word GIVING may be a numeric-edited item since it is not itself involved in the calculation.
When the GIVING phrase is supplied, the result of the arithmetic operation is assigned to the specified identifier.
The result stored in the identifier replaces its previous contents. Therefore, it is not necessary to reset the identifier to zero.
Example 8-17
ADD A B GIVING C.
The value C is set to the sum of A + B, and A and B are not changed.