INCLUDE - Include an Initialization Data Set

The INCLUDE initialization statement allows a new initialization data set to be processed. JES2 will immediately start reading records from the new data set and processing them. When all statements in the included data set have been processed, JES2 initialization resumes processing records from the original data set. INCLUDE statements can be nested (included initialization data set can include other data sets). JES2 can detect a nested include loop (for example, data set A includes data set B that then includes data set A). If JES2 detects a loop, the include request will fail.
Note:
  1. A D INCLUDE statement displays the data set from which JES2 is currently reading initialization statements. This displays data sets that were included using the INCLUDE statement and from initialization data sets specified in the JES2 PROC.
  2. When a data set being included reaches end of file, then all pending statements and comments are considered to be complete. Statements and comments cannot be continued past the end of an included data set.