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

Can we retrieve a dataset after deleting it?


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bcmohanty

New User


Joined: 17 May 2006
Posts: 17

PostPosted: Wed May 17, 2006 4:46 pm
Reply with quote

can we retrieve a dataset after deleating it?????
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Wed May 17, 2006 9:23 pm
Reply with quote

Yes Mohanty Its possible to retrieve a dataset after deleting it..

however it depends upon profile setup.

say you have deleted the dataset 'ABCDEFG.A1234.NEWONE'


Now type TSO HRECOVER 'ABCDEFG.A1234.NEWONE' to retrieve the deleted dataset...

this process takes couple of minutes. but you should have your file back.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Thu May 18, 2006 9:06 am
Reply with quote

HI,

Quote:
can we retrieve a dataset after deleating it?????


It depends if youe admin take backup of this file then only you can retrive the deleted file.

I believe, HRECOVER command is use to recover Migrated dataset.

Hope this helps

Regards
Rupesh
Back to top
View user's profile Send private message
bcmohanty

New User


Joined: 17 May 2006
Posts: 17

PostPosted: Thu May 18, 2006 9:34 am
Reply with quote

thanks 2 u all,
hrecover is used to retreve the dataset
hrecall is used to recover the migrated dataset
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Thu May 18, 2006 9:47 am
Reply with quote

HI Bcmohanty

Thnaks al lot for correcting me. Yes Hrecover is used for Retrive the dataset but can we retrive the deleted dataset?

Thanks & Regards
Rupesh
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Thu May 18, 2006 7:16 pm
Reply with quote

HRECOVER is used to get back the deleted datasets
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 -> Mainframe Interview Questions

 


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 Deleting a Tape file JCL & VSAM 14
Search our Forums:

Back to Top