ISO2002 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:

  1. 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.

  2. 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.
  3. After the arithmetic expression is evaluated, the resulting value is considered to be a numeric literal.
  4. An arithmetic expression must not result in a size error condition.