Statements that direct the operation of the compiler begin
with a percent (%) symbol. You can use % statements 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 the PL/I Language Reference.
- %INCLUDE
- Directs the compiler to incorporate external text into the source
program.
- %XINCLUDE
- Directs the compiler to incorporate external text into the source
program if it has not been previously included.
- %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.