Search

Sunday, March 17, 2013

Options to recover deleted flat files or member for PDS


Options to recover deleted files

There is option on mainframe to recover flat files. Here are the various commands to 
do that:

Go to Start 6 
HLIST BCDS DSN('filename') 
Wait for system response
Issue command HRECOVER 'filename' and wait for system response.





There are various ways to use HRECOVER as mentioned below:

  • HRECOVER 'filename' recovers with same name
  • HRECOVER ‘old filename’ NEW ('new filename') recovers and assigns new name
  • HRECOVER 'file name' REPLACE recovers replacing a file with same name



The recovery might take some time. HSM dump(s) of the volume(s) where the dataset 
resided for HRECOVER should be present to recover files successfully. If those dump(s) 
are not avaliable  user will recieve a message "BACKUP/DUMP COPY DOES NOT EXIST".

Options to recover member from PDS 

HRECOVER 'PDS.NAME' NEWNAME('PDS.RESTORED.NAME')

OR

In 3.4, access the dataset and enter the following command next to it 

PDS / RES XXX FIND(?info inside the lost member?) REPEAT NOPROMPT 
PDS / RES XXX FIND(?????) REPEAT NOPROMPT 


Members will be restored in the PDS with XXX00001, XXX00002, etc.

OR we too have TSO Command:

TSO HLIST BCDS DSN ('Dataset Name') 
USed incase backup are taken in generations.
TSO HRECOVER 'Original Dataset Name' GEN(005) NEWNAME 


No comments:

Post a Comment