How can we recover a deleted dataset?
So far,I know 2 solutions, first is HRECOVER command and next is 'contact storage management team'.But want to know
1. Is there any other way to recover a deleted dataset?
2. How long a dataset resides after deletion..means period till we can recover a dataset.
I am asking this question for gaining knowledge only.
Joined: 22 Apr 2006 Posts: 6258 Location: Mumbai, India
As an Application Developer - there are very less chances that you've any other way out.
When you say, a data set is deleted, it's either
deleted per the regular archival policy at your shop.
or an end-user has deleted it.
In both the cases, as expat has also indicated, if an application-backup, (using any means) is taken -- you can recover it from there. If the DS was backed up by HSM then you can use HRECOVER. How long the HSM will take care about the back-up - is a site specifc question. Every site has different retention policies and durations, as expat said.
On the other hand, actually when the data-set gets deleted, physically nothing happens. Only the pointers to the data are removed. If you'e curious and want to test - allocate a dataset using ABSTR . Add some easily recognisable data into the dataset. Delete the dataset . Reallocate the dataset using ABSTR . You should then be able to see the data that you added before deleting and reallocating the dataset. Create a copy of it then.
If you have no possibility to allocate the dataset without a close being performed, then after reallocating the dataset use the DFDSS print command and you will see the data - that as an Application Programmer you can do but don't try it at office, with "real-data". I'm not a Storage Guy - so can't really tell if there are ready-made tools available for this.