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



I believe it goes thusly:

An OPM RPG program can only be in the call stack of a job one time.  If
PGMA issues 'Call PGMA', an error ensues.

I haven't tried to do so with ILE RPG, so I'm not sure, but I would expect
the results to be similar.

ILE Procedures _can_ call themselves.  Similar to C, the arguments to the
function call are pushed onto an internal stack, and then the function is
given control.

At 01:37 PM 12/6/02, you wrote:
This is a multi-part message in MIME format.
--
I have too, but I just looked and it was an RPG CGI (eRPG) procedure that
called itself.  It sorts data by column heading and redisplays
itself.  Maybe you can't recursively call a program?


-----Original Message-----
From: James Rich [mailto:james@eaerich.com]
Sent: Friday, December 06, 2002 2:32 PM
To: 'rpg400-l@midrange.com'
Subject: RE: Can an RPG module call another RPG module?


On Fri, 6 Dec 2002, Fisher, Don wrote:

> No.  RPG does not allow recursive calls.

Are you sure about that?  I'm almost positive I've done this before.

James Rich
--
[ winmail.dat of type application/ms-tnef deleted ]
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
Regards,
Rich



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.