Declaring Fortran to PL/I ILC

You must specify entry declarations in PL/I source code when a PL/I routine invokes a Fortran routine and when a Fortran routine invokes a PL/I routine. The special declarations cause the PL/I compiler to generate an internal argument list that the Fortran routine accepts. No special declaration is required within the Fortran program.

In the PL/I routine that invokes Fortran, identify the entry point as Fortran in the OPTIONS attribute. The following example illustrates a PL/I routine that identifies a Fortran entry point FORTEP.
DCL FORTEP ENTRY OPTIONS(FORTRAN);
In the PL/I routine called by Fortran, declare the entry point in the OPTIONS attribute in the PROCEDURE or ENTRY statement. The following illustrates a PL/I routine FORTPLI that will be called by Fortran:
FORTPLI: PROCEDURE (parms) OPTIONS(FORTRAN);

parms specifies the parameters that are passed from the Fortran routine. In previous PL/I compilers, the OPTIONS attribute also needed the INTER keyword to control condition handling between Fortran and PL/I. The INTER keyword is ignored under Language Environment.