INCLUDE statement

Purpose: Use the INCLUDE statement to:
  • Identify the name of the member of a partitioned data set (PDS) or partitioned data set extended (PDSE) that contains a set of JCL statements (such as DD and OUTPUT JCL statements) called an INCLUDE group.
  • Imbed the INCLUDE group in the JCL stream at the position of the INCLUDE statement.

The INCLUDE group replaces the INCLUDE statement, and the system processes the embedded JCL statements as part of the JCL stream. Start of changeThe JCL statements, which are subject to all JCL processing rules, must be complete statements. You cannot use an embedded statement to continue the statement that precedes INCLUDE or begin a statement and use an embedded statement to continue that statement. For more information, see Example 4.End of change