z/OS Language Environment Writing Interlanguage Communication Applications
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


COBOL dynamically calling PL/I

z/OS Language Environment Writing Interlanguage Communication Applications
SA38-0684-00

Dynamically loaded modules that contain ILC cannot be released by using the COBOL CANCEL verb. The dynamically load module is instead released by Language Environment termination processing.

A COBOL program can dynamically CALL a PL/I routine; COBOL programs cannot dynamically CALL PL/I routines that were compiled by compilers previous to Language Environment-conforming version. Fetched PL/I routines must adhere to the restrictions listed in the IBM Enterprise PL/I for z/OS library. Enterprise PL/I for z/OS® has lifted some of the fetching restrictions. See the IBM Enterprise PL/I for z/OS library for more information.

If a PL/I procedure is to be dynamically loaded, you must do either of the following:
  • Specify OPTIONS(COBOL) on the PROC statement of the program that you compile and use the routine name as the entry point when you link-edit it.
  • Specify OPTIONS(COBOL FETCHABLE) on the PROC statement of the program that you compile.

In multitasking ILC applications, once a COBOL program is called by PL/I, it can dynamically CALL a PL/I subroutine by using the COBOL CALL identifier statement or the DYNAM compiler option.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014