The key is ACTGRP(*NEW).  This basically creates a completely new
environment for each call to the program: new ODPs, new variable spaces,
everything, so that even an RPG program can call itself.  It's almost as if
each activation group is running in its own job.  As you might guess,
though, this can be really expensive.  If you plan on having thousands of
calls, this might not be a good solution.

Joe


> From: Andre Dubreuil
> 
> Can someone tell me why recursivity some times works and some times it
> doesn't?



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