The BY parameter can filter for the following data set characteristics:
- Keyword
- Criteria
- ALLOC
- Allocation type (cylinder, track, block, absolute track, or
movable)
- CATLG
- Whether a data set is cataloged or not (using the standard catalog
search order)
- CREDT
- Creation date (absolute or relative)
- DATACLAS
- Data class for SMS
- DSCHA
- Whether the data-set-changed indicator is on
- DSORG
- Data set organization (SAM, PAM, PDS, PDSE, BDAM, EXCP, HFS,
ISAM, VSAM, or zFS)
- EXPDT
- Expiration date (absolute or relative)
- EXTNT
- Number of extents
- FSIZE
- Data set size (number of allocated or used tracks)
- MGMTCLAS
- Management class for SMS
- MULTI
- Whether the VTOC shows that the data set is single-volume or
multivolume (allocated single-volume data sets that have never been
opened and are not cataloged may be selected as multivolume).
- REFDT
- Last-referenced date (absolute or relative)
- STORCLAS
- Storage class for SMS
You can use any of the following operators with the BY keyword:
- Operator
- Meaning
- EQ or =
- Equal to
- LT or <
- Less than
- LE or <=
- Less than or equal to
- GT or >
- Greater than
- GE or >=
- Greater than or equal to
- NE or ¬=
- Not equal to
When you specify multiple arguments for an NE operation, DFSMSdss
selects only those data sets not matching any of the arguments. When
you specify multiple arguments for an EQ operation, DFSMSdss selects
those data sets matching any of the arguments.