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



Is it possible to prototype a single exported procedure embedded in an
external module without including the module name in the compiler? In
other words, let's say I have a group of procedures that use the same
global constants and may call each other during a procedure. Rather
than split all of the commonalities into source code snippets, is it
possible to compile the multi-procedure module and prototype the
procedures without telling the compiler which module the procedure is
from?

Example:

MODULEA consists of something simple like:

DProc1 pr 10i 0
D 3i 0

DProc2 pr 10i 0
D 3i 0

PProc1 b export
DProc1 pi 10i 0
DVar1 3i 0
/free
....
/end-free
PProc1 e

PProc2 b export
DProc2 pi 10i 0
DVar2 3i 0
/free
....
/end-free
PProc2 e

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.

Tom Armbruster

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.