×
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.
*
D myProc PR Extproc('myProc')
D Parm1 10A Const
D Parm2 10A Const
*
/IF DEFINED(MOD1)
*
D myProc PI Export
D Parm1 10A Const
D Parm2 10A Const
*
...
All the module code (other D-specs, C-specs etc.) goes here
...
/ENDIF
In your caller, you simply have the following:
/COPY QSOURCE,MOD1
When you compile the MOD1 module, be sure to define MOD1 on the CRTRPGMOD
command.
Thus, when your caller is compiled, because MOD1 *isn't* defined, it will
only include the prototype for myProc().
There might be other ways to do it, but this should work. Of course, if you
have F-specs in your module, then this wouldn't work, because the
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.