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



Vern Hamberg wrote:
Using a program call is easy to understand - it's just how it has always been. But I don't think I've thought of calling the main procedure of a program either using CALLB or using CALLP to a prototype with EXTPROC() specified - I hope I'm correct in that both are bound calls.

Yes, they're both bound calls. (As long as you don't specify ExtPgm or *JAVA, it's a bound call -- in fact, you don't even need ExtProc, bound calls are the default. You only need ExtProc if the procedure name doesn't match the prototype name.)

Is this new with 6.1, now that we can name a subprocedure as the entry procedure? Just curious.

No... this ability has existed since RPG IV was originally released in V3R1. In fact, subprocedures didn't exist until V3R2, so in V3R1/V3R6 the only way you could use ILE features in RPG was to call a main procedure.

Folks have referred to this as "calling a module" (which isn't really accurate, but it's commonly used).

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.