Arithmetic Expressions in Directives
An arithmetic expression can be specified in the EVALUATE directive and in
a constant conditional expression. The formation, the order of precedence,
and the rules for evaluation of these arithmetic expressions are shown in
the section Arithmetic Expressions in the chapter Procedure Division.
The following addition rules apply:
- All operands must be fixed-point numeric literals or arithmetic expressions
in which all operands are fixed-point numeric literals.
Note: This includes constants that are equated to a fixed-point numeric literal.
- After each arithmetic operation, the result is truncated to the integer part
of the value and the resultant value is considered to be an integer.
- After the arithmetic expression is evaluated, the resulting value is considered
to be a numeric literal.
- An arithmetic expression must not result in a size error condition.