Tuesday, December 6, 2011

Recover previous version of a PDS member in mainframe

I was editing a member and saved the changes. The version became 01.03 . I would like to go back to version 01.02 . How to do this?


Case 1: If you are using a version control tool (like CHGMAN), nothing to worry - CHGMAN saves all the versions of the members, and you can retrieve any version. 
 
Case 2: If you modified it just once, and there happened to be a system backup for the PDS before you made the modification, then there is hope. You can try "hrecover" command to retrieve the member from the backup. 

Case 3: No version controller, and no backups. When you make a change in a member and save it, it does not overwrite the existing location, but makes use of the free space in the PDS and directs the VTOC pointer for the member to the new location. The space occupied by the 'old' member will remain till you compress the dataset. 

As long as you have not compressed the dataset, there are tools available that you can use to recover the older versions. However this can be a very tedious process, as there may be hundreds of versions (depending on the number of saves made for all the members in the PDS, and it won't be very easy to find out the exact version you need). Still, "nothing is impossible"....

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.