Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!portal!cup.portal.com!jfh From: jfh@cup.portal.com (Jack F Hamilton) Newsgroups: comp.lang.rexx Subject: Getting out of a do-until Message-ID: <20036@cup.portal.com> Date: 30 Jun 89 19:49:27 GMT References: <7074@bunny.GTE.COM> Organization: The Portal System (TM) Lines: 25 I tried to post this before but I don't think I succeeded. If you get it twice, please ignore one... - I am working on a program with 2 nested DO loops: outerloop: do until (a=1) /* stuff */ innerloop: do until (b=2) /* more stuff */ end /* of innerloop */ end /* of outerloop */ Inside the inner loop, at "more stuff", I will sometimes want to drop out of the inner loop and go back to the outer loop. An "iterate outerloop" instruction would do exactly what I want. Unfortunately, the iterate instruction works only if the do-loop has a control variable, which a do-until does not. Is there a way to do what I want? Is there a better way of thinking about the problem that doesn't require an iterate at all? I don't think it would be a good idea to use SIGNAL. Jack Hamilton jfh@cup.portal.com