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

ENTRY statement

The ENTRY statement specifies a secondary entry point of a procedure. The ENTRY statement must be internal to the procedure for which it defines a secondary entry point. It cannot be within a do-group that specifies repetitive execution, or internal to a ON-unit.

Read syntax diagramSkip visual syntax diagram   .--------------.
   V              |
>>---entry-label:-+--ENTRY--+-------------------+--------------->
                            |   .-,---------.   |
                            |   V           |   |
                            '-(---parameter-+-)-'
 
>--+--------------------------+--+------------------+--;-------><
   |          .-----------.   |  '-OPTIONS(options)-'
   |          V           |   |
   '-RETURNS(---attribute-+-)-'
 
entry-label
The secondary entry point to the procedure.
parameter
Refer to Parameter attribute and Passing arguments to procedures.
RETURNS option
Refer to RETURNS option and attribute.
OPTIONS option
Refer to OPTIONS option and attribute.

All parameters on an ENTRY statement must be BYADDR, and for a procedure containing ENTRY statements, all non-pointer parameters to that procedure must be BYADDR.

If a procedure containing ENTRY statements has the RETURNS option (or if any of its contained ENTRY statements have the RETURNS option), then

When a procedure contains ENTRY statements and some, but not all of its entry points have the RETURNS attribute, the ERROR condition is detected under the following circumstances:


Terms of use | Feedback

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