This isn't exactly what you are talking about, but it looks like it can analyze flow control in COBOL programs:
http://www.asetechs.com/french/DataSheet/Cobol_Dead-Code-Cleaner_2004060 1_v2.pdf#search=%22COBOL%20code%20cleaner%22 Never used it myself, just recalled seeing it awhile back. Craig S. Mullins Corporate Technologist NEON Enterprise Software, Inc. -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of McKown, John Sent: Wednesday, September 06, 2006 2:54 PM To: [email protected] Subject: Automated "bad practices" in COBOL. 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 ---------------------------------------------------------------------- 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

