Rational Developer for System z
PL/I for Windows, Version 7.6, Programming Guide

%PROCESS statement

The third and final way to specify compile-time options—overriding option defaults, IBM.OPTIONS and IBM.PPxxx and the PLI command—is to use the %PROCESS (or *PROCESS) statement in your PL/I source program. The options apply only to the current compilation.

The following example illustrates the use of the %PROCESS statement:

%process source margins(1,80);
 Hello: proc options(main);
        display('Hello!');
 end Hello;

You can specify one or more %PROCESS statements, but they must precede all other PL/I source statements, including blank lines.

You must code the percent sign (or the asterisk) of the PROCESS statement in the first column of your source file. The keyword PROCESS can follow in the next column or after any number of blanks. The list of compile-time options on the %PROCESS statement must not extend beyond the default right-hand margin. You can continue the %PROCESS statement onto the next line, but make sure that in doing so you do not split a keyword or value. It is recommended that, instead of wrapping the statement, you code multiple %PROCESS statements, one per line.

Once all %PROCESS statements are interpreted, the rest of the program is read using the margin settings determined after considering the PLI command and the %PROCESS statements. This means that the sample %PROCESS statement shown previously would be processed correctly assuming that the default, MARGINS(2,72), was in effect at compile time.


Terms of use | Feedback

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