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?
One possibility is: http://support.sas.com/kb/12/392.html
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.
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?
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.
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
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
Thank you for letting us know. It's nice to hear when our suggestions help.
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
I don't see 'preferences' option in SAS EG 7.1 when I searched under Tools>Options . Where it could be available?
Tools>Options>Project Recovery
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)
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.