Page 1 of 1

Recursive programs

Posted: Mon Jun 20, 2011 12:03 pm
by FoxBill
I have a a program that is recursive. I go from one program to multiple other programs and then back to original program or Call another program then call back to the original program. In the past When i called and parm to the other program I would use the Free command . When I try this in a ProfoundUI program the compile blows up. Is there a similar command used or how would you handle this in UI program?

Re: Recursive programs

Posted: Mon Jun 20, 2011 12:39 pm
by Brian
This is not an issue with ProfoundUI. The FREE opcode was removed in RPGIV. RPGIV by itself does not support recursion. I suggest reconsidering your design to avoid calling the same program recursively.

If you my must use recursion, you will need to do so using ILE subprocedures. ILE does support recursion.