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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 50389 views
  • 0 likes
  • 4 in conversation