• Subject: Re: recursion calls
  • From: MacWheel99@xxxxxxx
  • Date: Tue, 10 Apr 2001 11:37:00 EDT

Well I found out by accident last week that CL can call itself.

I had this new RPG program INVHIEA which repopulates work file IEA
(Items which are Engineeringly Active) which I need to help identify bogus 
costs on items which have no activity & came into existance through past 

I had intended to write a tiny CL program INVHIEAC to call the RPG program 
but by mistake my CL program called INVHIEAC

el typo struck me & I did not notice in my desk checking
it compiled & did not count that as an error
then when testing, it ran for a while, then failed with a 70 page joblog, and 
when I tried it interactive it signed off the work station
the failure was that it nested itself too deep - I did not figure the math 
but I figured it called itself several thousand times before I hit the max.

>       What are the programming language on the AS/400 that support the 
>  recursion calls of a function or a program?
>  Could anybody post me a recursive fuction call example code. 
>  Thanks in advance
>  Heba

MacWheel99@aol.com (Alister Wm Macintyre) (Al Mac)
AS/400 Data Manager & Programmer for BPCS 405 CD Rel-02 mixed mode (twinax 
interactive & batch) @ http://www.cen-elec.com Central Industries of 
Indiana--->Quality manufacturer of wire harnesses and electrical 
sub-assemblies - fax # 812-424-6838

| 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

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].