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

How to get a deleted dataset back?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
yogeshbabu

New User


Joined: 30 Nov 2005
Posts: 19
Location: India

PostPosted: Sat Dec 03, 2005 2:01 pm
Reply with quote

Hi,
I deleted a dataset by mistake.Can any one tell me how to get back the dataset which is deleted ?

Regards,
Yogesh.
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Sun Dec 04, 2005 11:43 am
Reply with quote

Hi yogeshbabu,

From the TSO command prompt type

Code:
hrecover 'myid.mypds'


Specify your full dataset name.
You can see as when you press enter it throws a message. If it says the statement is in queue then it takes a long time to retrieve the dataset.

Hope this helps...
Back to top
View user's profile Send private message
sairam

New User


Joined: 30 Aug 2005
Posts: 58
Location: Kolkata

PostPosted: Fri Dec 16, 2005 4:54 pm
Reply with quote

Hi iknow
It is not working in my case showing invalid command.
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Fri Dec 16, 2005 6:41 pm
Reply with quote

Hi Sairam,

From the main primary options menu, TYPE 6.

You will get the TSO command prompt. Then try submitting using 'hrecover'. It should work.

Let me know in case of any concerns.
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Fri Dec 16, 2005 6:46 pm
Reply with quote

Hi,

More information on HRECOVER...

Create a backup copy of a dataset or library (if installation authorizes)

Quote:
HBACKDS dataset/library

Retrieve the most recent backup copy of a dataset or library that has been backed up

Quote:
HRECOVER dataset-name

Retrieve the backup copy of a dataset or library that was created before the most recent one

Quote:
HRECOVER dataset-name GENERATION(1)

Ask about your HRECOVER request.

Quote:
HQUERY



Hope this helps.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
No new posts Reading Empty Dataset DFSORT/ICETOOL 5
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
No new posts SPOOL to Mainframe dataset in batch mode JCL & VSAM 7
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
Search our Forums:

Back to Top