Obtaining data set information

You can obtain information about a single data set or about every data set for which DFSMShsm has any record. You can also select groups of data sets. Optional parameters allow you to select:

Many permutations exist for requesting information about data sets and levels. Some of them are shown here.

Sample requests for information about data sets are:

This request obtains information about all data sets that are recorded in the backup control data set.
LIST DATASETNAME BACKUPCONTROLDATASET
This request obtains information about the data set identified by dsname from the migration control data set.
LIST DATASETNAME(dsname) MIGRATIONCONTROLDATASET
This request obtains information about all data sets recorded in both the backup control data set and the migration control data set. In addition, it obtains information about any data sets that have migrated and been recalled.
LIST DATASETNAME BOTH INCLUDEPRIMARY
This request obtains information about data sets with the qualifier levelid recorded in the migration control data set, but only for the data sets on ML1 volumes.
LIST LEVEL(levelid) MIGRATIONCONTROLDATASET -
   SELECT(MIGRATIONLEVEL1)
This request obtains information about all data sets recorded in the migration control data set as being migrated to SDSP data sets.
LIST DATASETNAME MIGRATIONCONTROLDATASET -
   SELECT(SMALLDATASETPACKING)
This request obtains a list of all migrated data sets (excluding PDS and PDSE data sets) that were empty at the time of migration.
LIST DATASETNAME MIGRATIONCONTROLDATASET -
   SELECT(EMPTY)

Related reading

For more information about the LIST command, see LIST command: Listing information from the MCDS, BCDS, and OCDS.