Previous Topic: SCAN Command SYNTAXNext Topic: SELECT Command SYNTAX


SELECT Command

This required command allows a user to process only those data sets that satisfy the specified selection test(s).

If a SELECT statement is specified, in order for a data set to be selected, ALL tests specified on a single SELECT command must be met. If only one parameter is specified, only that single test must be met for selection to take place.

For example, if the DSNAMES= parameter or the VOLUMES= parameter, but not both, are specified on a single command, conceptually think process only these data sets or process only these volumes. If both the DSNAMES= and VOLUMES= parameters are specified, conceptually think process only these data sets if residing on one of these volumes.

If multiple SELECT commands are specified for an action command, this has the effect of a logical OR between SELECT commands. That is, if any SELECT command is true, the data set is processed, regardless of whether other SELECT commands test true or not.