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

Include preprocessor

The include preprocessor allows you to incorporate external source files into your programs by using include directives other than the PL/I directive %INCLUDE.

The following syntax diagram illustrates the options supported by the INCLUDE preprocessor:

Read syntax diagramSkip visual syntax diagram>>-PP--(--INCLUDE--(--'--ID(<directive>)--'--)--)--------------><
 
ID
Specifies the name of the include directive. Any line that starts with this directive as the first set of nonblank characters is treated as an include directive.

The specified directive must be followed by one or more blanks, an include member name, and finally an optional semicolon. Syntax for ddname(membername) is not supported.

In the following example, the first include directive is valid and the second one is not:

  ++include payroll
  ++include syslib(payroll)

This first example causes all lines that start with -INC (and possibly preceding blanks) to be treated as include directives:

  pp( include( 'id(-inc)'))

This second example causes all lines that start with ++INCLUDE (and possibly preceding blanks) to be treated as include directives:

  pp( include( 'id(++include)'))

Terms of use | Feedback

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