Basic HSM commands

 

HSM Commonly used commands

S No.CommandUSE OF COMMAND
1HMIGRATEWrite HMIGRATE next to dataset name
   
  Example:- TSO HMIGRATE 'USERID.ABC.XYZ'
   
2HBACKDSWrite HBACKDS next to dataset name
   
  Example:-TSO HBACKDS 'USERID.ABC.XYZ'
   
3HRECALLWrite 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.
   
4HRECOVERWrite 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.
   
5HLISTTSO HLIST DSN('USERID.ABC.XYZ') BOTH
   
6HDELETEHDELETE next to dataset name
  TSO HDELETE 'USERID.ABC.XYZ' PURGE

 

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer

Navigation