Instead of using (G=H) another option would be (STATUS # 0)
Set STATUS =0 before going into the Loop

This way, you can set STATUS to any number to make it function as an error 
number
You could make it: If non-zero and Even then the error came from the inner loop
                               If non-zero and Odd then the error came from the 
outer loop


If you don't care why your aborting the loop then use a @true or @false

George Gallen
Senior Programmer/Analyst
Accounting/Data Division
ggal...@wyanokegroup.com
ph:856.848.9005 Ext 220
The Wyanoke Group
http://www.wyanokegroup.com
________________________________________
From: u2-users-boun...@listserver.u2ug.org 
[u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson [wjhon...@aol.com]
Sent: Thursday, April 19, 2012 7:32 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] EXIT ; EXIT inside a loop

You don't need a DONE.FLAG
  A1 = 0
  LOOP UNTIL (G=H) OR (A1=X) DO
     A1 += 1; A2 = 0
     LOOP UNTIL (G=H) OR (A2=Y) DO
        A2 += 1
        You're in a maze of twisty little passages all alike
     REPEAT
  REPEAT



_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to