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




On 19/02/2008, at 6:42 PM, Armbruster, Tom wrote:

Is it possible to prototype the procedures like...

DProc1 pr 10i 0 extproc('Proc1')
D 3i 0

DProc2 pr 10i 0 extproc('Proc2')
D

without CRTPGM PGM(LIBRARY/PROGRAM) MODULE(LIBRARY/PROGRAM
LIBRARY/MODULEA) or splitting each procedure into a uniquely named
module?

Thanks in advance for your input.

The compiler must be able to resolve the exported procedure. It can do that in two ways:

1) by finding a module with that procedure EXPORTed
2) by finding a service program with that procedure listed in the public interface

At some point you must tell the compiler where to search for the modules and/or service programs. You do that by:

a) Specify the modules on the MODULE parameter and specify the service programs on the BNDSRVPGM parameter of the CRTPGM command (or equivalent)
--or--
b) Specify the modules and/or service programs in a binding directory and specify the binding directory on the BNDDIR parameter of the CRTPGM command (or equivalent)
--or--
c) Some combination of a) and b)

Most people opt to use binding directories for this purpose and that sounds to me like what you're looking for. You do need to be careful that a given procedure is not exported from both a module and service program (or multiples thereof) listed in the same binding directory. Usual solution for that is to have one *BNDDIR for modules used to build service programs, and another *BNDDIR listing service programs used to build programs and other service programs.

I don't understand why you think you would need a uniquely-named module for each procedure.

There is plenty of information on binding techniques in the archives. I suggest you research them because this topic has been covered exhaustively.

Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists

http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------




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.