Try looking at a product called Q/Auditor from Case Consult. Tom Phillips Principal Financial Group Des Moines, IA
-----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? -----Message Disclaimer----- This e-mail message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to [EMAIL PROTECTED] and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act ("E-Sign") unless a specific statement to the contrary is included in this message. While this communication may be used to promote or market a transaction or an idea that is discussed in the publication, it is intended to provide general information about the subject matter covered and is provided with the understanding that The Principal is not rendering legal, accounting, or tax advice. It is not a marketed opinion and may not be used to avoid penalties under the Internal Revenue Code. You should consult with appropriate counsel or other advisors on all matters pertaining to legal, tax, or accounting obligations and requirements. ---------------------------------------------------------------------- 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

