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

%PROCEDURE Statement

The %PROCEDURE statement is used in conjunction with a %END statement to delimit a preprocessor procedure. The syntax for the %PROCEDURE statement is:

Read syntax diagramSkip visual syntax diagram      .-------------.
      V             |
>>-%----entry-name:-+--PROCEDURE--+---------------------+------->
                                  |    .-,---------.    |
                                  |    V           |    |
                                  '-(----parameter-+--)-'
 
>--+-----------+--RETURNS--(--+-CHARACTER-+--)--;--------------><
   '-STATEMENT-'              '-FIXED-----'
 

Abbreviation: %PROC

parameter
specifies a parameter of the function procedure.
STATEMENT
If the reference occurs in input text and the STATEMENT option is present:

For example, a preprocessor procedure headed by:

%FIND:PROC(A,B,C) STATEMENT...;

must be invoked from a preprocessor expression by a reference of the form:

FIND(arg1,arg2,arg3)

If the reference is in input text, the procedure can be invoked by any of the following references (or similar ones), all of which have the same result:

FIND(X,Y,Z);

FIND B(Y) C(Z) A(X);

FIND(X) C(Z) B(Y);

FIND(,Y,Z) A(X);
RETURNS
The attribute CHARACTER or FIXED must be specified in the RETURNS attribute list to specify the attribute of the value returned by the function procedure.

Terms of use | Feedback

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