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
[email protected]
ph:856.848.9005 Ext 220
The Wyanoke Group
http://www.wyanokegroup.com
________________________________________
From: [email protected]
[[email protected]] On Behalf Of Wjhonson [[email protected]]
Sent: Thursday, April 19, 2012 7:32 PM
To: [email protected]
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
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users