70 pts.
 Mainframe COBOL – The OVERFLOW Condition.
We would like to able to identify procedural code which, at runtime , has the potential to result in overflow ie the resultant field is not large enough the derived value. Hopefully manually inspecting the code can be avoided (given that we have in excess of 30,000 programs!). Is there a compiler option which can be utilised ? Are there any third party packages out there which could be employed ? Many thanks for your replies. Alan in Edinburgh.

Software/Hardware used:
ASKED: July 1, 2008  8:49 AM
UPDATED: July 3, 2008  2:45 PM

Answer Wiki:
I believe there is an ON SIZE ERROR option which allows the application to do a function, such as DISPLAY ....... I think you need to specify this in the source code - and unfortunately, the only way to implement this is to search/add this option to your source code. You might want to look at compiler options and set this as a standard. I'm sure you have thought of this already. This may be a similar excercise as searching for 2 digit year fields for Y2K. Regards Mike Malesevich Thanks for your advise Mike. Alan.
Last Wiki Answer Submitted:  July 3, 2008  2:45 pm  by  Sunsetrider   860 pts.
All Answer Wiki Contributors:  Sunsetrider   860 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _