I was just looking at some COBOL code because it just crashed one of our
production CICS regions. I found the problem. Basically, an infinite
loop where each iteration of the loop added one to a subscript value and
put an "error message" into a table. The infinite loop is because the
PERFORM of the paragraph used a WHEN clause which tested a variable
which was not even referenced within the PERFORM'ed paragraphs.

So now I wondering if there is any automated system which can detect
things like this. I do know that in general, it would be difficult
because flow of control can be very complicated. I also noticed that the
"counter" for the array was PIC 9(3) USAGE DISPLAY. Another thing that I
wish I could detect. 

Is there anything on the market to detect errors or poor coding which is
relatively OBVIOUS, if only somebody had the time to examine it?

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its
content is protected by law.  If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited. 
 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to