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:
>>-PP--(--INCLUDE--(--'--ID(<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)'))