Previous Topic: DSORG=ALL|VSAM|PS

Next Topic: DSNAMES=dsname


EXCLUDE Statement

The following section describes the EXCLUDE statement.

EXCLUDE [DSNAMES=(dsname list)]
 [,VOLUMES=(volume list)]
 [,MBYTESRANGE=(0|n[,n])]
 [,DSORG=ALL|VSAM|PS]

The EXCLUDE statement is used to narrow the list of data sets, which are to be processed by a subsequent, EXAMINE statement. In order for a data set to be excluded from processing, all tests specified on the EXCLUDE statement must be met. If more than one EXCLUDE statement is coded prior to an EXAMINE statement, then a data set can be excluded from processing by any one of the EXCLUDE statements. That is, multiple EXCLUDE statements are ORed together.

Note: If an EXCLUDE statement immediately precedes or follows any SELECT statement, special rules apply. See the SELECT and EXCLUDE Processing Rules in this chapter for more information about these rules.