6.2.2 Function Subprograms

A function subprogram is a program unit consisting of a FUNCTION statement followed by a series of statements that define a computing procedure. Function references transfer control to a function subprogram; RETURN or END statements return control to the calling program unit.

A function subprogram returns a single value to the calling program unit by assigning that value to the function's name. The function's name determines the data type of the value returned.


Previous Page Next Page Table of Contents