Data set recovery and restore

You can use the following commands to recover a data set from a DFSMShsm backup version or dump copy:
  • These two forms of the command recover a specific data set when no data set with the same name is cataloged in the system catalog. If there is a data set with the same name, the recovery fails.
       HRECOVER dsname
       RECOVER dsname
  • These two forms of the command recover a specific data set but recover it under the fully qualified data set name specified by the NEWNAME parameter that is not currently cataloged in the system catalog. The original data set name may or may not exist in the system catalog.
       HRECOVER dsname NEWNAME(newdsname)
       RECOVER dsname NEWNAME(newdsname)
  • These two forms of the command recover a specific data set under its original name, even though a data set with the same name is cataloged. The cataloged data set is replaced by the recovered data set.
       HRECOVER dsname REPLACE
       RECOVER dsname REPLACE
  • These two forms of the command recover a specific data set to a fully qualified data set specified by the NEWNAME parameter, even though a data set is cataloged with the same name as is specified by the NEWNAME parameter. The recovered data set replaces the cataloged NEWNAME data set.
       HRECOVER dsname NEWNAME(newdsname) -
         REPLACE
       RECOVER dsname NEWNAME(newdsname) -
         REPLACE
      

The HRECOVER command can be used by any user; the RECOVER command can be used by DFSMShsm-authorized users. Three other parameters—DATE, GENERATION, and VERSION—can be specified that cause DFSMShsm to select a backup version or dump copy other than the most recent. The GENERATION and VERSION parameters are used to select a specific backup version. The DATE parameter allows the selection of either a dump copy or a backup version.

When the RECOVER or HRECOVER command is issued in any of the shown forms, DFSMShsm recovers the later of the most recent dump copy or the most recent incremental backup version. For a data set to be restored from a dump copy, the dump copy must have been made from a dump class that allows data set restore, and a VTOC copy must exist for the dump (except when an authorized user explicitly specifies a dump volume).

DFSMShsm’s recovery process involves five steps:
  • Determine if the data set being recovered currently exists on a level 0 volume
  • Select a target volume
  • Determine the storage class, management class, and data class to be associated with the data set
  • Determine whether to recover a backup version or a dump copy
  • Recover the data set to the target volume