MVS takes backup of files/datasets, every time they are changed.
Also it keeps backup of these changed versions. So, at any point
of time we can recover deleted datasets as well as its previous versions.
Steps to be followed to recover a PDS.
1) Type 'TSO HLIST DS('dataset name') BCDS'
2) Press Enter, you will get the information of the backups taken by HSM.
3) You can recover the datasets using the following command:-
Where dataset name is the dataset you want to recover, gen-number
can be 000, 001 and 002 depending on the backups you want to recover
(000 being the latest) and NEW-DATASET-NAME is the name of dataset
you want to create.
Above applies only to generation ( old versions ).
For lastest version use following command
Hi krishna ,
I tried your solution that u gave,but i didnt understand where to type that command .after i enter into tso first i type 'P' Option ,Then 6 Option which is COMMAND ther i type command u specified ,but iam getting some error shown below,
ARC0814I LIST PROCESSING TERMINATION EARLY,RC=02
ARC0143I LISTCOMPLETED 0 Lines of Data Output
plz help me , if possible show me screen shots of those where to type the commads ,etc.
do you use xpeditor? and are the DDIO files automatically updated via the normal compile jcl?
if so, you can print (to sysout) the listings from ddio files, then edit the source removing pre-compiler actions and restore your original source listings. I wrote rexx scripts to massage the ddio output to restore each member to original source format.
do you have a compile listing dataset? parse these, if they exist.
for future reference
do you use ISPF option 3.4 to edit your pds?
have you deactivated the 'do you want to delete' prompt?
which could have saved you, had you accidentally entered a 'D' instead of 'E' on the 3.4 display.
Suggest you start using ISPF option 2, to edit your pds.
Fortunately option 2 does not have a 'delete dataset' facility.
if this was not the case, pardon me for my assumption.
anyway, just one more reason for management to provide a repository. _________________ Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum