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



I'm certainly no expert, but I know from experience that you cannot call
an ILE program from itself UNLESS it is going to run in a new (i.e.
different) activation group. I have successfully had up to 5 levels of
recursion of a program compiled in *NEW, and that was just because of the
limits of what I was using it for (pretty handy, though :-)

I did try using a module and CALLB, but that definitely didn't work. I've
never tried with a procedure.

hth. . . .

rpg400-l@midrange.com writes:
>I believe it goes thusly:
>
>An OPM RPG program can only be in the call stack of a job one time.  If
>PGMA issues 'Call PGMA', an error ensues.
>
>I haven't tried to do so with ILE RPG, so I'm not sure, but I would expect
>the results to be similar.
>
>ILE Procedures _can_ call themselves.  Similar to C, the arguments to the
>function call are pushed onto an internal stack, and then the function is
>given control.



Mike Naughton
Senior Programmer/Analyst
Judd Wire, Inc.
124 Turnpike Road
Turners Falls, MA  01376
413-863-4357 x444
mnaughton@juddwire.com



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.