Skip to Content
Custom Search

Basic HSM commands

 

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
; ; ; ;

Please provide your feedback/suggestions regarding this tutorial on contact form. Tutorials related to COBOL, JCL, DB2 etc are also present on the Website for mainframe developers. Mainframe jobs can be posted on our mainframe jobs forum.

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

 

Share this if you liked it!

 

Disclaimer



Who's online

There are currently 0 users and 29 guests online.
Dr. Radut | page