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



David,

You have to distinguish between two different ways of using a prototype
with EXTPGM:
1) As a prototype for calling other programs. The EXTPGM name determines
the program that gets called;
2) As a way to define your own *ENTRY PLIST (in combination with a
procedure interface) - here the EXTPGM name does not really matter. You
will get an RNF3776 message with severity 10 in your compiler listing.

What Rob was trying to point out to you is that you will get into trouble
if you start using this prototype in other programs. But before you do
that you should at least change the internal name ('prc') to something
more useful. Using the program name for internal as well as external name
seems obvious here.

Joep Beckeringh


rpg400-l-bounces@xxxxxxxxxxxx wrote on 25-05-2009 09:41:37:
David FOXWELL

Thanks all.

So the name XXX210 would be the program called if I did a CALLP
using the prototype in my module XXX110 compiled into program
XXX110. As the call is from a CLP this never happens. The name
XXX210 is never actually used.

It's just an accident waiting to happen!?

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.