Mainframe COBOL – The OVERFLOW Condition.

70 pts.
Tags:
COBOL
Error handling
Programming Languages
z/OS
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following