Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

Subroutines

Example 1
Example 2

A subroutine is an internal or external procedure that is invoked by a CALL statement. For the syntax of a subroutine, see Procedures.

The arguments of the CALL statement are associated with the parameters of the invoked procedure. The subroutine is activated, and execution begins. The arguments (zero or more) can be input only, output only, or both.

A subroutine is normally terminated by the RETURN or the END statement. Control is then returned to the invoking block. A subroutine can be abnormally terminated as described in Procedure termination.

A subroutine procedure must:

The following examples illustrate the invocation of subroutines that are external to and internal to the invoking block.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)