ILE COBOL Programmer's Guide


Example of Binding Multiple Modules to Create a Program Object

This example shows you how to use the CRTPGM command to bind the module objects A, B, and C into the program object named ABC. The module object, which has the PEP and UEP for the program object, is the module object named on the ENTMOD parameter.

All external references should be resolved for the CRTPGM command to bind multiple modules into a program object. References to the ILE COBOL runtime functions are resolved as they are automatically bound into any program object containing ILE COBOL module objects.

  1. To bind several module objects to create a program object, type:
    CRTPGM PGM(ABC) MODULE(A B C) ENTMOD(*FIRST) DETAIL(*FULL)
    

    and press Enter.


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