Help using Base SAS procedures

SAS 9.3 crashed. is there an auto recover?

Reply
Super Contributor
Posts: 268

SAS 9.3 crashed. is there an auto recover?

For the first time ever, SAS crashed on me.  When I reopened the program, the code was gone.  Is there any sort of auto recover functionality that may have saved the program somewhere in my files?

PROC Star
Posts: 7,363

SAS 9.3 crashed. is there an auto recover?

Super Contributor
Posts: 268

SAS 9.3 crashed. is there an auto recover?

Here's what I found: C:\Users\<my user name>\AppData\Local\Temp\SAS Temporary Files.  The odd thing is that the program itself was not there but the files from the work library before it crashed were there.  So, I wrote a libname statement with this path and voila, up popped my data.

PROC Star
Posts: 7,363

SAS 9.3 crashed. is there an auto recover?

Gregg,

Glad you were at least able to recover your data.  One extra thought: did you look in your recycle bin to see if the possibly automatically saved then deleted program happened to be there?

Super User
Posts: 10,500

SAS 9.3 crashed. is there an auto recover?

Check Tools>Options>Preferences>Edit to see if your Autosave setting is turned on.

If so then it was saved somewhere but it is OS and version dependent. Unfortunately the system option AUTOSAVELOC doesn't report where.

I seem to remember finding some code files, with and extension other than .SAS in a Windows TEMP or TMP folder. If I remember correctly they may have had a name like $Autoxxxxx That was in with Windows XP and SAS 9.2.0 neither of which I currently have so I can't check for them.

Valued Guide
Posts: 2,175

SAS 9.3 crashed. is there an auto recover?

In Vista, Enhanced Editor has its autosave at

C:\Users\Peter Crawford\AppData\Roaming\SAS\EnhancedEditor

For DM they are named like

"Autosave of proc.report.demo.$AS"

For EG names are like

Autosave of Untitled_{AD6719CF-D17F-404F-913B-E6AFDB5EA24B}.$AS

and

Autosave of n_a_join2_{95C88722-BE90-4162-B14B-19282081C974}.$AS

N/A
Posts: 1

Re: SAS 9.3 crashed. is there an auto recover?

Peter C., your post saved me re-writing lots of code. On windows XP machine with SAS 9.3, the autosave for EnhancedEditor on my machine was here:

C:\Documents and Settings\PURMAH\Application Data\SAS\EnhancedEditor

Valued Guide
Posts: 2,175

Re: SAS 9.3 crashed. is there an auto recover?

Thank you for letting us know. It's nice to hear when our suggestions help.

N/A
Posts: 1

Re: SAS 9.3 crashed. is there an auto recover?

I would like to second MehdiP.  This is amazing.  I was so upset that I couldn't find where the SAS temp/autosaved files were.  Thank you so much, Peter.C

Super Contributor
Posts: 426

Re: SAS 9.3 crashed. is there an auto recover?

I don't see 'preferences' option in SAS EG 7.1 when I searched under Tools>Options . Where it could be available?

Super User
Posts: 3,106

Re: SAS 9.3 crashed. is there an auto recover?

Tools>Options>Project Recovery

Contributor
Posts: 35

Re: SAS 9.3 crashed. is there an auto recover?

Nice Suggestions all.

It saved my Job. As @ballardw suggested I checked the Tools>Options>Preferences>Edit and discovered that the Autosave option was turned on. Then it was just about finding the location.


If any body is stuck like me finding the location just remember SAS saves these autosaved files with .$AS extension (at least in windows environment, thanks @Peter.C), so just search for .$AS files and you should be able to recover it. I am using Windows 7, and these files are saved for me in C:\Users\<user name>\AppData\Roaming\SAS\EnhancedEditor (thanks again @Peter.C)

Ask a Question
Discussion stats
  • 11 replies
  • 11581 views
  • 8 likes
  • 9 in conversation