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

Recover dataset that has expired and backup deleted from HSM


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

New User


Joined: 12 Feb 2008
Posts: 8
Location: Southfield, MI

PostPosted: Tue May 08, 2012 1:40 am
Reply with quote

I have a problem that I am hoping someone can help me with. I need to restore a VSAM dataset from HSM backup that has been deleted. Unfortunately, the last backup version has also been deleted from the BCDS, so I can't do a RECOVER like I normally do.

I was able to find out the volser that the backup was on, it was in SCRATCH status in CA-1, but not over written as of yet. I changed the expiration date in the TMC and ran a CTSSYNC so it will not be written over for awhile. So the data on the tape is still valid.

Does anyone know how I can get the flag turned back on in the CDS for this tape so I can recover this dataset? I'm thinking that a FIXCDS command may do it, but I'm not sure which one(s) I need to use.

This is a very important dataset that I need to recover and there is no way I can recreate it.

If anyone has any suggestions, I will appreciate it.

Dave
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed May 09, 2012 11:31 am
Reply with quote

Only time I've done that was to drop HSM, restore the CDS to a level where the backup was valid, HSM up in emergency mode, restored the dataset, drop HSM, resore the CDS to current, restart HSM
Back to top
View user's profile Send private message
tigerwing

New User


Joined: 12 Feb 2008
Posts: 8
Location: Southfield, MI

PostPosted: Wed May 09, 2012 7:41 pm
Reply with quote

Thanks for the info. Will have to see if I can restore the CDS back far enough. Also will have to see how bad management needs this dataset.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 581
Location: London

PostPosted: Wed May 09, 2012 8:31 pm
Reply with quote

If it was ever migrated and the MCDS record still exists, and the migration tape not recycled you can sometimes do this to re-recall the migrated version:

HSEND FIXCDS D 'file.name' ASSIGNEDBIT(ON)
DEF NVSAM(NAME('file.name') -
VOL(MIGRAT) DEVT(3490))
HSEND RECALL 'file.name'

Depends on your SETSYS MIGRATIONCLEANUPDAYS setting in DFHSM parmlib whether the MCDS records has been deleted or not.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 581
Location: London

PostPosted: Thu May 10, 2012 3:57 pm
Reply with quote

If it was ever migrated and the MCDS record still exists, and the migration tape not recycled you can sometimes do this to re-recall the migrated version:

HSEND FIXCDS D 'file.name' ASSIGNEDBIT(ON)
DEF NVSAM(NAME('file.name') -
VOL(MIGRAT) DEVT(3490))
HSEND RECALL 'file.name'

Depends on your SETSYS MIGRATIONCLEANUPDAYS setting in DFHSM parmlib whether the MCDS records has been deleted or not.
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