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

Preprocessor Statements

Preprocessor statements are executed when encountered. You can:

Listing Control Statements

Listing control statements that are not contained in a preprocessor procedure are copied into the preprocessor output, each on a line of its own.

Input Text

The input text, after replacement of any active identifiers by new values, is copied into the preprocessor output. Invalid characters (part of a character constant or comment) are replaced with blanks in the preprocessor output. To determine replacements, the input text is scanned for:

Replacement values must not contain % symbols, unmatched quotation marks, or unmatched comment delimiters.

Preprocessor statements should be on separate lines from normal text. The one exception is the null statement when specified in the form %;. Such a null statement may be used to concatenate replacement text and regular text. For example, given the input text

  %dcl A char;
  %A = 'B';

  dcl A%C fixed bin(31);

the preprocessor would produce the output text

  dcl BC fixed bin(31);

The scan terminates when an attempt is made to scan beyond the last character in the preprocessor input. The preprocessor output is then complete and compilation can begin.


Terms of use | Feedback

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