The INCLUDE statement is used to enlarge the scope of MOVE DSGROUP, COPY DSGROUP, MOVE PDS, or COPY PDS statements by including a member or a data set not explicitly defined in those statements. The INCLUDE statement follows the MOVE or COPY statement whose function it modifies. The record characteristics of the included partitioned data sets must be compatible with those of the other partitioned data sets being moved or copied.
Any number of INCLUDE statements can modify a MOVE or COPY statement. For a partitioned data set, the INCLUDE statement is invalid when data is unloaded or when unloaded data is moved or copied. For DSGROUP operations, INCLUDE is invalid.
The syntax of the INCLUDE statement is:
| Label | Statement | Parameters |
|---|---|---|
| [label] | INCLUDE | DSNAME=name |
| [,MEMBER=membername] | ||
| [,{FROM=device={serial| (list)| |
If the data set is cataloged, do not code "FROM".
If you want to specify a specific device rather than device type, code the device number in the device subparameter.
If the data set resides on a tape device, the serial number must be enclosed in parentheses, and the data set sequence number must be included as follows: "(serial,sequence number)".