Invoking functions

Functions can also be declared as described above. A procedure written in PL/I as a function can be invoked through a function reference in a Fortran routine. Similarly, a routine written in Fortran as a function subprogram can be invoked through a function reference in a PL/I routine.

Character data cannot be used as function return values in functions invoked by either Fortran or PL/I in a Fortran to PL/I ILC application. However, character data can be used as arguments for either functions or subroutines. See Passing data between Fortran and PL/I for information about character data in Fortran to PL/I ILC.