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


  • Subject: RE: RPG & recursive call
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Thu, 12 Nov 1998 08:28:50 -0600


> -----Original Message-----
> From: Mark Lazarus [SMTP:mlazarus@ttec.com]
> Sent: Wednesday, November 11, 1998 3:31 PM
> To:   MIDRANGE-L@midrange.com
> Subject:      RE: RPG & recursive call
> 
> Brad,
> 
> At 01:12 PM 11/10/98 -0600, you wrote:
> 
> >> >Is it possible to do a recursive call in an RPG III program ? If I
> >> try to do
> >> >that by a simple CALL I have the message RPG8888.
> >> >
> >> Some languages (CL) support recursion, but RPG and COBOL do not.  You
> >> can
> >> do a recursive call from a RPG program, but the call cannot be to
> >> another
> >> RPG program in the call stack.
> >> 
> >     [And Brad Said:]  Al, would this be considered recursion?  Just
> >wondering... A recursive call would call itself, which would inherintly
> >say that the program would already be in the call stack, correct?  So,
> >how can an RPG/III program make a recursive call?  ;)
> 
>  If the call from the RPG program is to a CLP that is already in the
> stack.
> 
>  -mark
> 
        [And Brad Said:]  That ain't recursion.  Recursion is a procedure
calling itself. 
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.