Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Truncated intermediate results

Whenever the number of digits in an intermediate result exceeds 30 in compatibility mode or 31 in extended mode, the compiler truncates to 30 (compatibility mode) or 31 (extended mode) digits and issues a warning. If truncation occurs at run time, a message is issued and the program continues running.

If you want to avoid the truncation of intermediate results that can occur in fixed-point calculations, use floating-point operands (COMP-1 or COMP-2) instead.

related concepts  
Formats for numeric data


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)