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

how to restore a deleted PDS


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Jun 14, 2012 6:50 pm
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

Moderator Emeritus


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

PostPosted: Thu Jun 14, 2012 7:07 pm
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

Global Moderator


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

PostPosted: Thu Jun 14, 2012 7:23 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Jun 14, 2012 7:29 pm
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

Global Moderator


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

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

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

New User


Joined: 17 Jun 2010
Posts: 75
Location: Chennai

PostPosted: Tue Jun 19, 2012 4:39 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 19, 2012 4:49 pm
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

Superior Member


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

PostPosted: Tue Jun 19, 2012 5:04 pm
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: 75
Location: Chennai

PostPosted: Tue Jun 19, 2012 5:52 pm
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

Moderator Emeritus


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

PostPosted: Tue Jun 19, 2012 6:39 pm
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: 1788
Location: Bloomington, IL

PostPosted: Tue Jun 19, 2012 6:39 pm
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: 1702
Location: Australia

PostPosted: Wed Jun 20, 2012 4:27 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Restore CSD? CICS 1
No new posts DUMP A Multi volume datasets and rest... JCL & VSAM 6
No new posts RACF- How to find the Last access of ... All Other Mainframe Topics 7
No new posts Cannot change DATACLAS on DFSMSdss re... JCL & VSAM 11
No new posts Old gds of GDG not rolledoff after AD... IBM Tools 3
Search our Forums:

Back to Top