|
In ILE (V3R7 / V3R2), you can create the RPG program with DFTACTGRP(*NO) and ACTGRP(*CALLER), and then you have recursivity. Be aware however, that you are starting up a new activation group with each recursive call to the program. I am currently using this method for our menu system. It works slick, but I wouldn't use it if I were writing something like a calculation routine where was speed was important. Dave >---------- >From: David Gibbs[SMTP:david@midrange.com] >Sent: Tuesday, June 24, 1997 10:51 AM >To: MIDRANGE-L@midrange.com >Subject: Re: Recursion > >At 08:19 AM 6/24/97 PDT, Rich Dotson wrote: >>Is there any way I can call a RPG program recursively? > >Your supposed to be able to create SUB-PROGRAMS in V3R7 / V3R2 that can >be >called recursively. > >david > >-- >| Internet: david@midrange.com >| WWW: http://www.midrange.com/david >| AOL: DMGibbs >| >| ... A man can move mountains, a world can be turned, >| and the greatest of distances easily spanned, >| When the strength that's invested in making a fist >| is transformed into shaking a hand. >| >| - DMRoth >* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >* >* This is the Midrange System Mailing List! To submit a new message, >* >* send your mail to "MIDRANGE-L@midrange.com". To unsubscribe from >* >* this list send email to MAJORDOMO@midrange.com and specify >* >* 'unsubscribe MIDRANGE-L' in the body of your message. Questions >* >* should be directed to the list owner / operator: david@midrange.com >* >* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >* > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the Midrange System Mailing List! To submit a new message, * * send your mail to "MIDRANGE-L@midrange.com". To unsubscribe from * * this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe MIDRANGE-L' in the body of your message. Questions * * should be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
As an Amazon Associate we earn from qualifying purchases.
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.