Skip to main content

Problem:

Results of arithmentic operations are different between INT and GNT code forms

Resolution:

One of the things that can cause these differnces is the presence of an undetected overflow condition , otherwise known as a size error. That is the executiion of a computation or arithmentic operation is producing a result to large for the receiveing data item.

To detect this condition add the ON SIZE ERROR clause to the COBOL statement - If the size error occurs, modify the size of the receiving data item.

Old KB# 2344