SAS- Retrieve Your Unsaved SAS Code

Get Your Lost SAS Code Back

This happens so many times to so many people, frequently saving codes (or other documents) is something that we are just not good at,  fortunately,  SAS takes a backup of the code we work on every 10 minutes (default time).
If you happen to lose an unsaved code; look in the following location: 

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

*Application Data might be hidden so to unhide it  go to  Tools>Folder options>View then click on "Show hidden files and Folders" 

*replace “Analyst” with your login user id to the local machine; 

A copy of the unsaved version must be available here. Else simply search your local drive for files with extension ‘.$as’ (extension for auto-saved SAS codes)

You can change the 10-minute time interval for auto-save by clicking Tools ► Options ► Preferences and selecting the Edit tab. In the preferences dialog box, make sure Autosave is checked and change the time.

  1. gravatar

    # by Meena - September 22, 2009 at 9:10 PM

    Thank you :D :D :D ....

  2. gravatar

    # by Kathi - November 23, 2009 at 7:14 PM


  3. gravatar

    # by Anonymous - March 2, 2012 at 12:30 PM

    thank you so much

  4. gravatar

    # by Anonymous - September 26, 2012 at 1:20 AM


  5. gravatar

    # by Anonymous - April 6, 2013 at 12:41 PM

    thats good trick, thanks for sharing.

  6. gravatar

    # by Anonymous - August 26, 2013 at 4:19 PM

    Thank you!!! It saved my day!!

  7. gravatar

    # by Tushar - December 11, 2013 at 12:01 PM

    Can you tell me same for the Unix environment? I am working in IBM AIX platform and for sure this is the coolest tip i have ever read. Thanks!! :)

  8. gravatar

    # by Anonymous - April 8, 2014 at 8:54 AM

    Thank you so much...

Blog Widget by LinkWithin

Search this blog..