TSO command to retrieve the older version of file.

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

TSO command to retrieve the older version of file.

Post 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 ?
Quasar Chunawala
Registered Member
Posts: 34
Joined: Sun Aug 11, 2013 4:48 pm
Location: Pune

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

Post by Quasar Chunawala »

The simple answer to your question is z/OS doesn't maintain versions of datasets.
dick scherrer
Former Team Member
Posts: 62
Joined: Wed Aug 07, 2013 6:43 pm

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

Post 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 . . .
Hope this helps,
d
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

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

Post 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
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.
Quasar Chunawala
Registered Member
Posts: 34
Joined: Sun Aug 11, 2013 4:48 pm
Location: Pune

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

Post by Quasar Chunawala »

I don't want to hijack the topic. But, what is ABSTR.
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

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

Post by Pragya »

Thanks. I could not find the back-up. Had to create the test-data again.
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

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

Post by Anuj Dhawan »

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.
Post Reply

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

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”