1) the link is bad 2) the current compiler flags dead code and does not compile it
IBM Mainframe Discussion List <[email protected]> wrote on 09/06/2006 04:19:35 PM: > This isn't exactly what you are talking about, but it looks like it can analyze flow control in COBOL programs: > Never used it myself, just recalled seeing it awhile back. > Craig S. Mullins > -----Original Message----- > Wednesday, September 06, 2006 2:54 PM > 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 ----------------------------------------- The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. The information may also constitute a legally privileged confidential communication. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you ---------------------------------------------------------------------- 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

