How DFSMSdss filters data sets

DFSMSdss filters data sets in the following ways:
  • Applying inclusion and exclusion criteria to fully or partially qualified data set names.
    • If you specify inclusion criteria (INCLUDE), DFSMSdss tentatively selects all data sets that fit any of the criteria.
    • If you do not specify inclusion criteria, you must specify EXCLUDE or BY. In this case, DFSMSdss tentatively selects all data sets (equivalent to INCLUDE(**)). For the DEFRAG command, INCLUDE(**) is always implied.
    • If you specify exclusion criteria (EXCLUDE), DFSMSdss surveys the data sets that are selected with the inclusion criteria. It then rejects the data sets that fit any of the new criteria.
  • Applying data set characteristics (BY) criteria to the data sets that are tentatively selected with the inclusion and exclusion criteria. DFSMSdss selects only those data sets that satisfy all BY criteria.

DFSMSdss lets you find out which data sets are selected by the filtering process without actually performing the requested operations. You can do this by specifying TYPRUN=NORUN on the JCL EXEC PARM field.