× 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.



On Fri, 6 Dec 2002, Rich Duzenbury wrote:
>
> >But, I think the original poster was asking if a 'module' can call itself
> >recursively.  By that, I'm assuming he means: "can the main procedure of
> >an ILE RPG program call itself recursively?"
>
> As far as I can tell, modules are not executable.  Therefore, a module
> cannot call itself, nor any other thing.
>

That's why I restated the question as 'the main procedure of an ILE RPG
program' so that you wouldn't choke the term "module".   Apparently,
it didn't work. :(

> >That's one that I don't have an answer for.   Maybe I should stop writing
> >e-mails, and try it. :)
>
> Let us know if it works out.  I wouldn't think it would.

It doesn't work.   It fails with an RNX8888 error which says that it
cannot be called recursively..

So, that answers the question.   A subprocedure can be called recursively.
A main procedure cannot, even if it is not the entry procedure.



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-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.