Page 1 of 1

TSO command to retrieve the older version of file.

Posted: Sun Mar 09, 2014 4:32 pm
by Pragya
Hi,

We've created a test data-set, unknowingly one of my team-member had changed some records in a data-set. Is there any TSO command or a way out to retireve the older dataset ?

Re: TSO command to retrieve the older version of file.

Posted: Mon Mar 10, 2014 5:21 pm
by Quasar Chunawala
The simple answer to your question is z/OS doesn't maintain versions of datasets.

Re: TSO command to retrieve the older version of file.

Posted: Thu Mar 13, 2014 12:33 am
by dick scherrer
Is there any TSO command or a way out to retireve the older dataset ?
Hopefully, they (your teammate) made a backup of the data first . . .

If not, it is most likely gone. You could talk with your storage management people and see if there might be a backup frmo when the Disaster Recovery backups were made . . .

Re: TSO command to retrieve the older version of file.

Posted: Thu Mar 13, 2014 10:03 am
by Anuj Dhawan
If I read between the lines and see what the new team members have done, at times, at my shop, your data is possibly gone. On the other hand, there are some possibilities:

1. Is your site using a product like HSM? Yes? - your data-set might have just been saved under HSM policies and you might just recover it. BUT - for an end-user data-set this possibility is distant.

/Off topic
2. This is not relevant here, however, for a curious mind - "data" is never deleted, all that is done is VTOC updated. Actually, physically nothing happens - only the pointers to the data are removed and that's why, as an end user, we don't see the data.

If you want to test, allocate a dataset using ABSTR and have some easily recognisable data into the dataset. Delete the dataset. Reallocate the dataset using ABSTR. And - whoila - You should then be able to see the data that you added before deleting and reallocating the dataset . If it's not possible to allocate the dataset without a close being performed, then after reallocating the dataset use the DFDSS print command and you will see the data.

/Off topic

Re: TSO command to retrieve the older version of file.

Posted: Thu Mar 13, 2014 2:16 pm
by Quasar Chunawala
I don't want to hijack the topic. But, what is ABSTR.

Re: TSO command to retrieve the older version of file.

Posted: Mon Mar 31, 2014 8:20 pm
by Pragya
Thanks. I could not find the back-up. Had to create the test-data again.

Re: TSO command to retrieve the older version of file.

Posted: Mon Mar 31, 2014 8:45 pm
by Anuj Dhawan
Thanks for the follow up, Pragya.