Previous Topic: Control Statement SpecificationNext Topic: Control Statements for the CONTROL-SECTION


INCLUDE Control Statement

The INCLUDE control statement, which may be submitted by itself or in any one of the three sections, specifies a member of a Partitioned Data Set (PDS) which contains TMSGRW control statements. The data set name for the PDS member is specified with the anyname2 DD statement. The PDS member can specify control statements for a partial section or for multiple sections, and must not contain an INCLUDE control statement.

The block size of the PDS member will affect the total number of DEFINE statements, WHEN/AND/OR statements and PRINT/DUMP/TRANSLATE statements that can be specified in the PDS member. See Special Considerations for additional information. The format for the INCLUDE statement is:

INCLUDE anyname2 xxxxxxxx

Control Statement Definition

INCLUDE

Identifies the control statement. It must be followed by a space.

anyname2

Identifies the PDS containing the member that is used as input. anyname2 is the ddname of the PDS as defined in the JCL.

xxxxxxxx

Identifies the PDS member containing TMSGRW control statements.

Examples:

To include PDS member XYZ containing the complete set of control statements for the CONTROL-SECTION, PROCESS-SECTION and REPORT-SECTION, the following SYSIN control statement data set could be used:

SYSIN Data Set PDS Member XYZ

INCLUDE PDS XYZ		CONTROL-SECTION
			(control statements)
			PROCESS-SECTION
			(control statements)
			REPORT-SECTION
			(control statements)

To include PDS member JKL containing control statements for the PROCESS-SECTION, the following SYSIN control statement data set could be used:

SYSIN Data Set PDS Member JKL

CONTROL-SECTION		WHEN EXPDT LE TODAY
(control statements)	REJECT
PROCESS-SECTION
INCLUDE PDS JKL
REPORT-SECTION
(control statements)