I agree it is ugly code. Not my invention, I'm just the maintainer, so I get to fix it.
I have to restructure the whole program anyway to add some major new functionality, so this will just be part of the job. Peter -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Gibney, Dave Sent: Monday, April 23, 2012 4:01 PM To: IBM-MAIN@bama.ua.edu Subject: Re: Why does Enterprise COBOL V4.1 optimization complain about a PERFORM loop? Dropping through into PARA-2 from PARA-1 when the return from the PERFORM PARA-2 is still set would result in a loop. Ugly code IMO. -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN