TSO command to retrieve the older version of file.
Moderator: mickeydusaor
TSO command to retrieve the older version of file.
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 ?
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 ?
-
- Registered Member
- Posts: 34
- Joined: Sun Aug 11, 2013 4:48 pm
- Location: Pune
Re: TSO command to retrieve the older version of file.
The simple answer to your question is z/OS doesn't maintain versions of datasets.
-
- Former Team Member
- Posts: 62
- Joined: Wed Aug 07, 2013 6:43 pm
Re: TSO command to retrieve the older version of file.
Hopefully, they (your teammate) made a backup of the data first . . .Is there any TSO command or a way out to retireve the older dataset ?
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 . . .
Hope this helps,
d
d
- Anuj Dhawan
- Founder
- Posts: 2801
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: TSO command to retrieve the older version of file.
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
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
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
-
- Registered Member
- Posts: 34
- Joined: Sun Aug 11, 2013 4:48 pm
- Location: Pune
Re: TSO command to retrieve the older version of file.
I don't want to hijack the topic. But, what is ABSTR.
Re: TSO command to retrieve the older version of file.
Thanks. I could not find the back-up. Had to create the test-data again.
- Anuj Dhawan
- Founder
- Posts: 2801
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: TSO command to retrieve the older version of file.
Thanks for the follow up, Pragya.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute