PL/I fetching C
A PL/I routine can fetch a C function or another PL/I routine that is statically linked to a C function. Any C routine that is either directly or indirectly fetched by PL/I must be either naturally reentrant or be non-reentrant (that is, it cannot have constructed reentrancy via the RENT option and the prelinker).
The declaration of a C fetched routine within a PL/I routine is shown in Figure 1.
Figure 1. PL/I fetching
a C routine
DCL CENTRY EXTERNAL ENTRY; /* declare C entry point */
.
.
.
FETCH CENTRY; /* fetch the routine */
CALL CENTRY(args); /* call routine */