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



"mlazarus@xxxxxxxx" wrote:
> 
> Barbara,
> 
>  Is there a possibility to add *CURRENT as a special value for the EXTPGM()
> keyword?  That way if the source gets renamed we wouldn't have to remember
> to change the hardcoded value.
> 

Mark, prototypes are meant to be used by both calling programs and the
program itself (so for EXTPGM, the prototype should be in a /copy
file).  The EXTPGM keyword is really more for the callers anyway, so I
think it should be hardcoded.  For the program itself, if the command's
PGM parameter and the EXTPGM parameter are different you just get a sev
10 message; the EXTPGM parm is ignored and the program gets created
exactly the same as if you had the EXTPGM correct.

I realize that some people put an EXTPGM PR in the main source code
instead of having it in a /copy file, but I don't think we should add
something to the language to make it easier to do that.  Even if you
currently don't have an ILE RPG caller, you may have some day, and it
would be silly to have to edit the program source to move the prototype
into a copy file and even sillier to create another prototype to call
the program.


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.