>> I think GOBACK is equivalent to EXIT PROGRAM, followed by STOP RUN, so
I'm not surprised.

Not quite.  GOBACK means "Do a Stop Run if you are leaving the root program,
otherwise do an Exit Program.  It was added to the language to avoid code
like this:

   Exit Program.
* If Exit Program "dropped through" issue Stop Run
   Stop Run.

Recursion in this case is frankly a waste of effort - this is not a
recursive process.  Besides, recursion doesn't really work properly in OPM
anyway.

Simply prevent the run unit from terminating with one of the methods I
mentioned earlier and everything will work as you want.


Jon Paris

-----Orig



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.