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




Yes, EXTPGM with a literal name will only resolve the program once. Same as with the traditional CALL.

The significance of the performance advantage really depends on how frequently the program will be called. If it's called only once, there's none. In a batch program calling a sub-pgm millions of times it will be noticeable.

If call performance is an issue, you might consider using ILE bound procedures instead.


Keith




Joe Pluta wrote:
IIRC, back in the bad old days there were performance implications on a
CALL depending on whether I used a literal ('PGMA') or a variable name
on the CALL instruction.  With a literal, I seem to remember that the
operating system only resolved the pointer to the program the first
time, while with a variable it was resolved every time.

Is this the same with the EXTPGM keyword on a prototype?  That is, if I
key in a literal in the EXTPGM keyword, is there a performance advantage
as opposed to using a variable name?

Joe


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.