Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to restore a deleted PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
xpower

New User


Joined: 07 May 2006
Posts: 35

PostPosted: Thu Jun 14, 2012 6:45 pm    Post subject: how to restore a deleted PDS
Reply with quote

Dear all,
I deleted a PDS named A.B.C.D by mistake. could you please tell me how to restore the deleted PDS A.B.C.D ?
Thanks ahead.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Thu Jun 14, 2012 6:50 pm    Post subject:
Reply with quote

1. Contact your site storage management group.
2. Contact your site storage management group.
3. Contact your site storage management group.

Get the idea yet?

IF your site is using HSM (or a similar package from another vendor), AND IF the data set is having HSM (or ?) backups done, AND IF there is an exisitng backup, then your site storage management group can restore the data set.

Otherwise, your site storage management group should have some form of backup for DR purposes of all data sets, which might be possibly used to retore the data set.

However, nobody on this forum can tell you witherr or not the preconditions exist since we don't work at your site.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jun 14, 2012 7:07 pm    Post subject:
Reply with quote

Hello,

Keep in mind that file management is quite different on the mainframe than on Win-based systems.

We don't have an Undelete function per se. . . icon_wink.gif

Suggest in the futute you make sure there are backups readily available for all of "your" datasets. Most systems already have this in place, but i'd suggest making sure you know where the backups are and how to use them (assuming you have permission to restore datasets). Depending on the dataset(s) and their use, co-ordinating with the storage management people as well as others who might also use the dataset would be advisable.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Thu Jun 14, 2012 7:23 pm    Post subject:
Reply with quote

Robert/Dick,

I am just trying to understand so only if backups are already in place HRECOVER could work is it?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Thu Jun 14, 2012 7:29 pm    Post subject:
Reply with quote

Yes -- HRECOVER requires HSM to be installed, and operational, at the site -- and also that HSM is being used for that particular data set high level qualifier.

Many sites otherwise have some standard back ups that are done (either for recovery or DR purposes), but whether or not they are done and the product used to do them, and which data sets are covered, are all EXTREMELY site dependent.

Basically, on a mainframe not only is there NO undelete function, as Dick mentioned, but unless a backup mechanism is implemented (via HSM, or CA-ASM2, or FDR, or whatever) -- there are NO backups of data sets by default.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Thu Jun 14, 2012 7:48 pm    Post subject:
Reply with quote

Thanks Robert
Back to top
View user's profile Send private message
cmsmoon

New User


Joined: 17 Jun 2010
Posts: 72
Location: Chennai

PostPosted: Tue Jun 19, 2012 4:39 pm    Post subject:
Reply with quote

you can try the command

TSO HRECOVER 'DATASET NAME'

Open your PDS after you should get the recovered messages
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Tue Jun 19, 2012 4:49 pm    Post subject:
Reply with quote

cmsmoon, your "solution" will work ONLY if HSM is installed and operational at that site, and for that data set name -- as my earlier posts indicated. YOUR site may have HSM running, in which case your "solution" would work, but not all sites use HSM and hence at those sites your "solution" would fail completely.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Tue Jun 19, 2012 5:04 pm    Post subject:
Reply with quote

cmsmoon - I wonder if you read the second post in this thread from Robert, before telling about HRECOVER, which clearly explains how and when it will work! icon_neutral.gif
Back to top
View user's profile Send private message
cmsmoon

New User


Joined: 17 Jun 2010
Posts: 72
Location: Chennai

PostPosted: Tue Jun 19, 2012 5:52 pm    Post subject:
Reply with quote

Sorry for this.....

How can we check HSM to be installed or not?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jun 19, 2012 6:39 pm    Post subject:
Reply with quote

Hello,

It would be best to talk with your dasd storage management people.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Tue Jun 19, 2012 6:39 pm    Post subject:
Reply with quote

cmsmoon wrote:
Sorry for this.....

How can we check HSM to be installed or not?

The SYSHSM variable returned by the Rexx SYSVAR function.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Jun 20, 2012 4:27 am    Post subject:
Reply with quote

Hi,

let's not forget that just because you can restore a dataset, it does not guarantee that no data has been lost.

The latest backup might not contain the changes that have occurred since the last back up and when the dataset was deleted.


Gerry
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts ADRDSSU Restore - How to prevent repl... Lipi.Prasannan JCL & VSAM 12 Fri Oct 02, 2015 12:13 am
No new posts Count the number of rows updated or d... Chetan Kumar DB2 6 Tue Jul 14, 2015 7:57 pm
No new posts Already written data in VSAM got dele... Tanuz JCL & VSAM 6 Fri Feb 27, 2015 2:01 pm
No new posts Impact on Online Transactions:- VSAM ... subdalal CICS 2 Thu Oct 17, 2013 10:25 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us