SAS Procedures

Help using Base SAS procedures
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 59608 views
  • 2 likes
  • 4 in conversation