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

How to restore a deleted dataset?


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

New User


Joined: 22 Feb 2007
Posts: 6
Location: INDIA

PostPosted: Tue Jan 29, 2008 11:24 am
Reply with quote

Hi all,

Currently I faced a problem of deletion of a dataset which had some relevent data. I want to restore the same.

Can some one help me with the code to restore the dataset from the tape?

or what is the process of getting a deleted dataset back?

Regards,
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Jan 29, 2008 11:56 am
Reply with quote

poulomi,

Quote:
Can some one help me with the code to restore the dataset from the tape?

Speak with ur local storage management team. If your shop takes backup at regualr intervals, they might restore from the backup.
Back to top
View user's profile Send private message
poulomi

New User


Joined: 22 Feb 2007
Posts: 6
Location: INDIA

PostPosted: Tue Jan 29, 2008 12:10 pm
Reply with quote

Hi Murali,

Tried with them. But since duplicate datasets with same dataset name was created after deletion so it has become little bit difficult to track back the one which was of actual use.
So I was wondering if we have any code which can retrieve the required dataset at once.

Regards,
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jan 29, 2008 12:42 pm
Reply with quote

How can You expect US to give the code to restore a specific dataset
if even Your organization dos not know what to restore ???
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jan 29, 2008 12:46 pm
Reply with quote

Easy - Start with the newest backup and work backwards until you find what you need.

Just restore to a new dataset name
Back to top
View user's profile Send private message
Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Tue Jan 29, 2008 3:33 pm
Reply with quote

Most probably you storage team will take backup of all production files. Contact then and get the tape name where these files are backed up depending on date.

If in case you have authority try running this utility to restore dataset.


//STEP010 EXEC PGM=ADRDSSU
//SYSPRINT DD SYSOUT=*
//IN DD DSN=Tape dataset,DISP=OLD
//SYSIN DD *
RESTORE DATASET(INCLUDE( -
Data set to be restored -
)) -
RENUNC -
((dataset to be resored , new name to the restored dataset)) -
CATALOG REP -
INDD(IN)
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jan 29, 2008 5:50 pm
Reply with quote

Srinivasa Rao

How do you know that the backups were taken using DFdss ?
Back to top
View user's profile Send private message
Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Tue Jan 29, 2008 6:15 pm
Reply with quote

Its a guess and I won't think there is an equivalent product which can simulate to Z/OS environment so perfectly as SMS. So I thought DFDss might have taken backup.
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