If you have an ILE C/C++ program calling a program (*PGM), use the OS calling convention for ILE C/C++ in your ILE C/C++ source to tell the compiler that PGMNAME is an external program, not a bound ILE procedure.
This section provides examples that illustrate dynamic program call
conventions for ILE C/C++ programs that call any external program. As
shown in Table 19, ILE C uses the same convention when calling all external
programs other than an EPM entry point.
Table 19. Dynamic Program Calling Conventions
Action | Program Call Convention |
---|---|
ILE C calling *PGM where *PGM is
| #pragma linkage (PGMNAME, OS)
For example,
|
ILE C calling an EPM entry point | #pragma linkage (QPXXCALL, OS)
For example,
|
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.