Hi,
Instead of « ON SIZE ERROR » on every arithmetic statement, a solution could be to implement in IBM Entreprise COBOL compiler the exception management as described in ISO standard.
A compilation option could activate globally exception management for any cases or for a subset of cases, like overflow or the >>TURN exception CHECKING ON|OFF.
Exception equivalent for ON SIZE ERROR are E-SIZE-OVERFLOW and EC-SIZE-UNDERFLOW.
Exception can be managed by DECLARATIVES and USE AFTER EXCEPTION CONDITION exception-name.
------------------------------
Denis FALLAI
BPCE SI, BPCE group.
------------------------------
Original Message:
Sent: Tue February 13, 2024 03:44 PM
From: Patrick Cribbs
Subject: Overflow Detection Utility
United States inflation is causing more financial programs written in COBOL to overflow. Is there a utility for detecting an 'ON SIZE ERROR" condition without adding the code to the programs and recompiling? Unfortunately, US inflation is causing another situation similar to Y2K. The utility would help to identify programs requiring necessary changes without having to add 'ON SIZE ERROR' to every arithmetic statement. Unfortunately, many older programs are truncating results. Could this be a possible enhancement to an existing utility such as ADO or a scanner/parser utility?
------------------------------
Patrick Cribbs
------------------------------