ILE COBOL Programmer's Guide


Run Time Concepts

A program object is created from one or more module objects. Each program object has one and only one module object designated as the main entry point when the program object is activated. When a module object is created by the ILE COBOL compiler, a PEP is generated which calls the outermost ILE COBOL program contained in the compilation unit. When you bind multiple module objects together to create a program object, you must specify which module object contains the PEP of the program object being created. You do this by identifying the module object in the ENTMOD parameter of the CRTPGM command. The PEP of this module object becomes the PEP for the program object.

When a program object is activated using a dynamic program call, the PEP is given control. The PEP then calls the UEP which is the outermost ILE COBOL program in the module object that is to be performed first. Refer to the ILE Concepts book for a discussion on PEPs and UEPs.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]