PLI Program: Process Options Real Usage (1 of 2)

The %PROCESS statement identifies the start of each external procedure and allows compile-time options to be specified for each compilation. The options you specify in adjacent %PROCESS statements apply to the compilation of the source statements to the end of input, or the next %PROCESS statement.

To specify options in the %PROCESS statement, code as follows:

%PROCESS options;

where options is a list of compile-time options. You must end the list of options with a semicolon, and the options list should not extend beyond the default right-hand source margin. The asterisk must appear in the first data byte of the record.

  • If the records are F-format, the asterisk must be in column 1. If the records are V- or U-format, the asterisk must be as far left as possible, that is, column 1 or immediately following the sequence numbers if these are on the extreme left.
  • The keyword %PROCESS can follow in the next byte (column) or after any number of blanks. You must separate option keywords by a comma or at least one blank.

The number of characters is limited only by the length of the record. If you do not wish to specify any options, code:


If you find it necessary to continue the %PROCESS statement onto the next record, terminate the first part of the list after any delimiter, and continue on the next record.

You can split option keywords or keyword arguments when continuing onto the next record, provided that the keyword or argument string terminates in the right-hand source margin, and the remainder of the string starts in the same column as the asterisk.

You can continue a %PROCESS statement on several lines, or start a new %PROCESS statement.

An example of multiple adjacent %PROCESS statements is as follows:


Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.