An alternative is to have e g an 88-type LEAVE item that is checked for every code-block including all iterations and selections. (You set leave to true when wanting to do a "leave" type jump.)
Regards, Thomas Berg ______________________________________________________ Thomas Berg Specialist AM/DQS SWEDBANK AB (publ) > -----Ursprungligt meddelande----- > Från: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] För > Edward Jaffe > Skickat: den 16 april 2012 08:15 > Till: IBM-MAIN@bama.ua.edu > Ämne: Re: GO TO "cobol" > > On 4/15/2012 10:31 PM, Wayne Bickerdike wrote: > > For devotees of Jackson Structured programming, the GOTO is a must for > > POSIT and ADMIT processing. Otherwise it can be messy avoiding a GOTO. > > The problem with GOTO is that the suitability of the target branch > location is > not enforced by the compiler according to any structured discipline. > > Premature terminations (posit/quit/admit) can almost always be handled > with > LEAVE-type statements or immediate return from a subroutine. Some > languages have > SIGNAL, EXIT, etc. which can help provide structured premature > termination for > larger routines without resorting to the dreaded GOTO. > > -- > Edward E Jaffe > Phoenix Software International, Inc > 831 Parkview Drive North > El Segundo, CA 90245 > 310-338-0400 x318 > edja...@phoenixsoftware.com > http://www.phoenixsoftware.com/ > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN