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

CALL statement

The CALL statement invokes a subroutine.

Read syntax diagramSkip visual syntax diagram>>-CALL--+-entry-reference-+--(-+------------------+-)--;------><
         +-generic-name----+    | .-,------------. |
         '-built-in-name---'    | V              | |
                                '---+-argument-+-+-'
                                    '-*--------'
 
entry-reference
Specifies that the name of the subroutine to be invoked is declared with the ENTRY attribute (discussed in Entry data).
generic-name
Specifies that the name of the subroutine to be invoked is declared with the GENERIC attribute (discussed in Generic entries).
built-in name
Specifies the name of the subroutine to be invoked is declared with the BUILTIN attribute (see BUILTIN attribute).
argument
Is an element, an element expression, or an aggregate to be passed to the invoked subroutine. See Passing arguments to procedures.

References and expressions in the CALL statement are evaluated in the block in which the call is executed. This includes execution of any ON-units entered as the result of the evaluations.


Terms of use | Feedback

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