HSM Commonly used commands
S No. | Command | USE OF COMMAND |
---|---|---|
1 | HMIGRATE | Write HMIGRATE next to dataset name |
 |  |  |
 |  | Example:- TSO HMIGRATE ‘USERID.ABC.XYZ’ |
 |  |  |
2 | HBACKDS | Write HBACKDS next to dataset name |
 |  |  |
 |  | Example:-TSO HBACKDS ‘USERID.ABC.XYZ’ |
 |  |  |
3 | HRECALL | Write HRECALL next to dataset name |
 |  |  |
 |  | Example:-TSO HRECALL ‘USERID.ABC.XYZ’ |
 |  |  |
 |  | PDS members can not be recovered individually. If you specify a member, the entire PDS will be recalled. |
 |  |  |
4 | HRECOVER | Write HRECOVER next to dataset name |
 |  |  |
 |  | Example:- TSO HRECOVER ‘USERID.ABC.XYZ’ |
 |  |  |
 |  | To recover to a newname: |
 |  | TSO HRECOVER ‘USERID.ABC.XYZ’ NEWNAME(‘NEW.DATASET.NAME’) |
 |  |  |
 |  | To replace your dataset: |
 |  | TSO HRECOVER ‘USERID.ABC.XYZ’ REPLACE |
 |  |  |
 |  | To recover a certain backup version: |
 |  | TSO HRECOVER ‘USERID.ABC.XYZ’ DATE(yyyy/mm/dd) |
 |  | NOTE: will recover the latest backup version on or before the date entered. |
 |  | TSO HRECOVER ‘USERID.ABC.XYZ’ GENERATION(gen number) |
 |  | NOTE: will recover a particular incremental backup version. A zero specifies the latest version, 1 the next to latest version, and so on. |
 |  | TSO HRECOVER ‘USERID.ABC.XYZ’ VERSION(version number) |
 |  | NOTE: will recover a particular version of a backed up dataset. |
 |  |  |
5 | HLIST | TSO HLIST DSN(‘USERID.ABC.XYZ’) BOTH |
 |  |  |
6 | HDELETE | HDELETE next to dataset name |
 |  | TSO HDELETE ‘USERID.ABC.XYZ’ PURGE |