BookmarkSubscribeRSS Feed
arnab61
Calcite | Level 5

I have mistakenly executed one data step that updated one of the permanent tables. Can anybody tell me is there any way to restore the data sets with the earlier version??

I will highly appreciate if anybody comesback with a quick and fast solution..

4 REPLIES 4
LinusH
Tourmaline | Level 20

Assuming that you can't programmatically restore the tables to it's previous state, there are just a few thing that can help you:

  • File system restore, contact the responsible personnel for backups.
  • The Base SAS table is stored as generations, see documentation how to rollback to an earlier version.
  • The table is under audit trail. You can you programming to extract the changes from the trail and update the table accordingly.
Data never sleeps
sas_9
Obsidian | Level 7

I guess IT support always has physical backup for all your server drive (D:\, E:\ whatever) and retention for daily physical content also should be there. you can use their help...


data_null__
Jade | Level 19

In future you may want to add ACCESS=READONLY to your libname statements.

Or you can add ALTER or WRITE passwords to the data set you don't want to change.

voroslaszlo
Calcite | Level 5

Yes there is. If you connect with R to SAS R has its own dataset reader interface what draws through the deleted records too and you can undelete them in R.

Another possible option what I have not tried for 25 years - so maybe it does not work anymore - is dBase. As far I remember, dBase export from SAS contained the deleted records too, and you could set them back to undeleted in dBase. There still exists dBase somewhere out there but I did not try it with this version.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 6089 views
  • 1 like
  • 5 in conversation