Previous Topic: FMS Select Criteria Boolean (AND/OR) LogicNext Topic: ACTION Commands


EXCLUDE Command

The EXCLUDE command allows you to exclude data sets from processing, and it takes precedence over SELECT commands. For instance, if the data set being processed is excluded by any EXCLUDE command, the SELECT of the data set will not occur. In order for a data set to be excluded, all tests specified on a single EXCLUDE command must be met. If only one parameter is specified, only that single test must be met for the exclusion to be honored. If the EXCLUDE command is specified more than once for any given ACTION command, it has the effect of a logical OR between EXCLUDE commands. That is, if any EXCLUDE command is true, then the data set is bypassed, regardless if other EXCLUDE commands test true or not.

For example, if the DSNAMES= parameter or the VOLUMES= parameter, but not both, are specified, conceptually think don't process these data sets or don't process these volumes. If both the DSNAMES= and VOLUMES= parameters are specified on a single EXCLUDE command, conceptually think don't process these data sets if they reside on these volumes.

All parameters that can be specified on the SELECT command are valid parameters for the EXCLUDE command. They operate in exactly the same fashion and with the same defaults.

Syntax

The syntax of the EXCLUDE command is as follows:

EXCLUDE DSNAMES=,TABLE=,VOLUMES=,TDSN=,CATALOGS=,VTOCS,CRITERIA=

All syntax that can be specified on the SELECT command are valid syntax for the EXCLUDE command.