In ILE, program processing occurs at the procedure level. ILE programs consist of one or more modules which consist of one or more procedures.
In ILE, you can call either a program (*PGM) or an ILE procedure. The calling program must identify whether the target of the call statement is a program or an ILE procedure.
C/C++ ILE conventions differ for calling programs and for calling ILE procedures.
ILE C and C++ modules can contain only one main() procedure, but can contain many subordinate procedures (functions). Certain other ILE languages allow only one procedure.
For more information about the calls to programs and procedures, see ILE Concepts, SC41-5606-07.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.