ILE COBOL Programmer's Guide


Calling ILE CL Programs and Procedures

An ILE COBOL program can call ILE CL programs and procedures using dynamic program calls or static procedure calls.

When a dynamic program call is used to call an ILE CL program, the ILE CL program must be compiled and bound as a separate program object. When a static procedure call is used to call an ILE CL procedure, the ILE CL procedure must first be compiled into a module object and then bound to the calling ILE COBOL program. Refer to the CL Programming for a description of compiling and binding ILE CL programs and procedures.

You call an ILE CL program or procedure from an ILE COBOL program by using the CALL literal statement (where literal is the name of the ILE CL program or procedure). To call the ILE CL program or procedure, you write the CALL literal statement in the same way as you would if you were calling another ILE COBOL subprogram. See Using Static Procedure Calls and Dynamic Program Calls for detailed information about how to write the CALL statement in your ILE COBOL program to call an ILE CL program using dynamic program calls or static procedure calls.

You can also call an ILE CL program from an ILE COBOL program by using the CALL identifier statement. See Using CALL identifier for more information on CALL identifier.


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