BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mnew
Calcite | Level 5
Hi there:

Accidentally closed my SAS session. Did not save anything before this happened unexpectedly. (Yes I should have, even as a new SAS user! Was too absorbed following along the SAS online training...)

Is there any hope to recover my SAS code, or even just the log? (I'm using windows xp...)

Is there a way to have SAS autosave the codes like in Excel?

Thank you. I will try to remember my lesson but might not succeed all the time.
1 ACCEPTED SOLUTION

Accepted Solutions
ArtC
Rhodochrosite | Level 12
Short answer: Maybe.

Enhanced Editor code is saved every 10 minutes (by default). The location is hard to remember, but is described in
http://support.sas.com/kb/12/392.html

You can change the location using the autosaveloc= system option.

View solution in original post

4 REPLIES 4
ArtC
Rhodochrosite | Level 12
Short answer: Maybe.

Enhanced Editor code is saved every 10 minutes (by default). The location is hard to remember, but is described in
http://support.sas.com/kb/12/392.html

You can change the location using the autosaveloc= system option.
mnew
Calcite | Level 5
Thank you!
The short story is I was able to recover the codes.
In case this might help someone in the future, here is the long report.

I went to the support link. Almost gave up my hope as I read "Note that the backup files are deleted when the Enhanced Editor window containing the SAS program code is closed or you exit SAS. "

But I was still curious about the file location. Followed the instruction and found the $AS file. Tried to open it with SAS. Got an error message telling me the file did not exist...

In the end found out I could open it with text editor programs (notepad etc).
Happy ending.
atzamis
Obsidian | Level 7

Hi, 

 

had you changed the extension  from .$as to .SAS  (after copying it to another location so as not damage the original file) you could have opened normally as any other sas program (because you said that you had to use a text editor).

shahadatunina
Calcite | Level 5
it worked, thanks

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

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.

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
  • 4 replies
  • 55205 views
  • 0 likes
  • 4 in conversation