Limits and Errors when Rexx Uses Numbers Directly

When Rexx uses numbers directly, that is, numbers that have not been involved in an arithmetic operation, they are rounded, if necessary, according to the setting of NUMERIC DIGITS. The normal whole number limit depends on the platform default NUMERIC DIGITS setting. If the default setting is 9, the whole number limit is 999999999. If the default DIGITS value is 18, the whole number limit is 999999999999999999.

The following table shows which numbers must be whole numbers and what their limits are:

Table 10-1. Whole Number Limits

Power values (right-hand operand of the power operator)The platform whole number limit.
Values of exprr and exprf in the DO instructionThe platform whole number limit
Values given for DIGITS or FUZZ in the NUMERIC instruction The platform whole number limits (Note: FUZZ must always be less than DIGITS.)
Positional patterns in parsing templatesThe platform whole number limit
Number given for option in the TRACE instructionThe platform whole number limit

When Rexx uses numbers directly, the following types of errors can occur: