ILE Conventions for Calling Any Program (*PGM)
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.
Note: The OS calling convention for ILE C is the
#pragma linkage (PGMNAME, OS)
directive. The OS calling convention for ILE C++ is extern "OS"
.This section provides examples that illustrate dynamic program call conventions for ILE C/C++ programs that call any external program. As shown in Table 1, ILE C uses the same convention when calling all external programs other than an EPM entry point.
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,
|