Previous Topic: POSTEXIT=modname

Next Topic: DSNAMES=dsname


SELECT Statement

The following section describes the SELECT statement.

SELECT [DSNAMES=(dsnamelist)]
[,VOLUMES=(volumelist)]
 [,MBYTESRANGE=(0|n[,n])]
 [,DSORG=ALL|VSAM|PS]

The SELECT statement is used to narrow the list of data sets to be processed by a subsequent EXAMINE statement. For a data set to be selected for processing, all tests specified on the SELECT statement must be met. If more than one SELECT statement is coded before an EXAMINE statement, a data set can be selected by any one of the SELECT statements to be processed by the EXAMINE statement. Multiple SELECT 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 a more information.