BookmarkSubscribeRSS Feed
paulinalawson
Obsidian | Level 7
Hi,

 

One of our user accidentally overwrote the original dataset. Could anyone please tell me how to recover previous version of the dataset?

 

I appreciate the help.

 

Regards,

Paulina

9 REPLIES 9
Reeza
Super User

Are you on Windows or Unix? SAS Server? If its windows and on a local drive and you have versioning set up, go to the parent folder, click properties, see previous versions - may have to a wait a few minutes for it to populate (literally a few minutes). 

 

paulinalawson
Obsidian | Level 7

SAS Server is on Windows. Under Previous Versions it says "There are no previous versions available". 

 

I see that Shadow Copies of Shared Folders to make Previous Versions available is not enabled and configured on the file server.

Reeza
Super User

:'( then its bye bye unless you can get a backup copy from a nightly/weekly backup. That's usually time intensive/$$.

SASKiwi
PROC Star

If this dataset was stored in a server folder, check with your IT folks regarding server backups, and whether you can get the dataset restored from backup. If this was stored on a PC then it is unlikely to be backed up anywhere and SAS does not do backups itself.

paulinalawson
Obsidian | Level 7

Dataset has been stored on server folder.

paulinalawson
Obsidian | Level 7

Hi,

 

One of our user accidentally overwrote the original dataset. Could anyone please tell me how to recover previous version of the dataset?

 

I appreciate the help.

 

Regards,

Paulina

nayakig
Obsidian | Level 7
Not sure how you can do that in SAS, but restore-backup team in your company should be able to recover that for you ! you just need to tell them the date and time that you want the dataset or any file for that matter..! for example if your friend over write the dataset on 12 today, you ask them to restore the same dataset from 11.59 or before..!


ballardw
Super User

@paulinalawson wrote:

Hi,

 

One of our user accidentally overwrote the original dataset. Could anyone please tell me how to recover previous version of the dataset?

 

I appreciate the help.

 

Regards,

Paulina


If you do not have a backup (after checking with your IT staff) then how was the data set created initially? If it was read from another data source did you keep that program and source file? If so, rerun that code (and any cleaning/modification step up do but not the code which destroyed.

Now, go back through all of your code and change all the instances of

 

Data olddataset;

   set olddataset;

 

to something like

Data newerdataset;

    set olddataset;

 

to prevent this.

 

And beat all the programmers/users that use that old/old syntax with wet spaghetti noodles until they promise to stop.

It might not hurt to bill the time/effort cost to the offending persons project budget as a lesson if possible.

Kurt_Bremser
Super User

@paulinalawson wrote:
Hi,

 

One of our user accidentally overwrote the original dataset. Could anyone please tell me how to recover previous version of the dataset?

 

I appreciate the help.

 

Regards,

Paulina


Very easy. Restore from your backup.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 9 replies
  • 13268 views
  • 2 likes
  • 6 in conversation