The PFUN statement (PROCEDURE_FUNCTION, PROC_FN, PFUNCTION)
The PFUN statement has the syntax of a FUNCTION statement, but is found within a program, declaring and preceding the text of a function available within that program.
For further details, see the description above of the PSUB statement.