The %PROCEDURE statement is used in conjunction with a %END statement to delimit a preprocessor procedure. The syntax for the %PROCEDURE statement is:
Abbreviation: %PROC
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);