× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Joe Pluta wrote:
It was thus fairly easy to implement re-entrancy by simply allowing
multiple copies of the data portion.  Unfortunately, RPG had some
limitation on re-entrancy that I never quite understood, but CL programs
could call themselves and each call level would have its own data
portion in the PAG.

Activation groups can be use to get around the re-entrancy issue with
RPG.   With *NEW, each call to the RPG program sets up its own data
group, and thus there are no recursion issues.  But there aren't
multiple copies of the program code, just of the data portion.

Maybe you are aware of this already, but RPG subprocedures can be called recursively. All file data, including file pointers, are global though, so recursively looping through a set of records takes some repositioning.


Joep Beckeringh

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.