Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Declaring Fortran to PL/I ILC z/OS Language Environment Writing Interlanguage Communication Applications SA38-0684-00 |
|
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.
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:
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. |
Copyright IBM Corporation 1990, 2014
|