|
Recursive calls are also allowed for programs whose main procedure is a linear-main procedure. A linear-main procedure can only be called through a program call, so when a linear-main procedure calls itself recursively, the program containing the linear-main procedure is called again. Otherwise, the behavior for a linear-main procedure calling itself recursively is the same as for an ordinary subprocedure calling itself recursively.
Procedures CAN be called recursively
https://blog.faq400.com/en/programming/recursive-calls-in-ile-rpg-and-sql-part-1/
Gad
from: Eric Wesson<fjwesson@xxxxxxxxxxx>
subject: Re: When ctl-opt main() is missing...
I'm curious... if you have a linear pgm with a control spec of main
pointing to a procedure, can that pgm be called recursively like sub
procedures can?
________________________________
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.