×
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.
Hello,
On 6/20/2013 2:23 PM, Brian Parkins wrote:
As Brian Meyer correctly states:
o The prototype for the main procedure must include the EXTPGM keyword.
o The procedure interface must be named (the same as the prototype).
o The prototype must precede the procedure interface.
Hmmm... Actually, you don't need to use EXTPGM on the prototype for the
main procedure -- but EXTPGM is needed if you're going to use the
prototype to make a dynamic call. If you're calling using another means
(such as the CL CALL command, a stored procedure call, call from another
language, call using CALL/PARM in RPG, etc) then you don't need the EXTPGM.
If you leave off the EXTPGM, the procedure name will have to match your
program name (or you get a compile error) but if named the same as the
program, it'll work. And, you can just to make bound calls, too.
starting in 7.1, you don't need the prototype (PR) at all (unless you
want to use it to make calls). You can just code the PI and leave off
the PR entirely.
As an Amazon Associate we earn from qualifying purchases.
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.