IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Recovery of deleted dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mfguy01

New User


Joined: 06 Sep 2010
Posts: 30
Location: India

PostPosted: Tue Nov 29, 2011 4:10 pm
Reply with quote

Hi,

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.

Thanks in advance.....icon_smile.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 29, 2011 4:16 pm
Reply with quote

1) Application backups exist ? (b) Ask storage management
2) Ask storage management - site specific question
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 29, 2011 5:35 pm
Reply with quote

what has the question to do with cobol?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Nov 29, 2011 6:28 pm
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top