HRECOVER dataset-name will retrieve the dataset. But note that at the time of retrieval there should not exist another dataset with the same name.
HRECOVER dataset-name GENERATION (1) This will retrieve the 1 version older than the latest one DELETED. (For example you created a dataset on 17/06/2002. Changed it on 18/06/2002. Now you have deleted the dataset on 19/06/2002. The above command will retrieve the dataset as on 17/06/2002.)
If there is already an existing dataset with the name which you are retrieving.
You can either give a new name for the retrieved dataset or replace the existing dataset.
Joined: 06 Jun 2008 Posts: 8165 Location: East Dubuque, Illinois, USA
Rajnikant, you are assuming (1) that the data sets are under HSM control (which is not always the case), and (2) every site's HSM policies work just like yours do (never a good assumption to make).
Vivek: first you need to know if the data sets are under HSM control -- if so, the HRECOVER command Rajnikant posted will work for you. If they are not, then you must restore from a back up. There may be a system back up taken that could be used, or an application back up. If there was no back up made, and the data set is not under HSM control, then you cannot recover the deleted data set.