Rational Developer for System z
Enterprise PL/I for z/OS, Version 4.1, Programming Guide

Using % statements

Using the %INCLUDE statement

Statements that direct the operation of the compiler begin with a percent (%) symbol. % statements allow you to control the source program listing and to include external strings in the source program. % statements must not have label or condition prefixes and cannot be a unit of a compound statement. You should place each % statement on a line by itself.

The usage of each % control statement is listed below. For a complete description of these statements, see PL/I Language Reference.

%INCLUDE
Directs the compiler to incorporate external strings of characters and/or graphics into the source program.
%PRINT
Directs the compiler to resume printing the source and insource listings.
%NOPRINT
Directs the compiler to suspend printing the source and insource listings until a %PRINT statement is encountered.
%PAGE
Directs the compiler to print the statement immediately after a %PAGE statement in the program listing on the first line of the next page.
%POP
Directs the compiler to restore the status of the %PRINT and %NOPRINT saved by the most recent %PUSH.
%PUSH
Saves the current status of the %PRINT and %NOPRINT in a push down stack on a last-in, first-out basis.
%SKIP
Specifies the number of lines to be skipped.

Terms of use | Feedback

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