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

Preprocessor RETURN Statement

The preprocessor RETURN statement can be used only in a preprocessor procedure and only when the procedure has the RETURNS attribute, and it therefore, can have no leading %. It returns a value as well as control back to the point from which the preprocessor procedure was invoked. At least one RETURN statement must appear in each preprocessor procedure that has the RETURNS attribute.

The value returned by a preprocessor function procedure to the point of invocation is specified by the preprocessor-expression in a RETURN statement in the procedure. The syntax of the preprocessor RETURN statement is:

Read syntax diagramSkip visual syntax diagram>>-+------------+--RETURN--(--preprocessor-expression--)--;----><
   | .--------. |
   | V        | |
   '---label:-+-'
 
preprocessor-expression
The value is converted to the RETURNS attribute specified in the %PROCEDURE statement before it is passed back to the point of invocation.

Terms of use | Feedback

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