When SAS is closes unexpectedly what is the default directory path to the SAS program files that were not saved in the normal manner?
I do thank you @ChrisNZ for the clues. Those examples helped me find what I was looking for.
When SAS closes due to system reboots and/or actions where the user did not have a chance to save their SAS code it is nice to have a possible rollback to those SAS program codes. I have found this option very useful when coding SAS programs. I am not sure if the Admins set it up like this or if the setup is a SAS default but it sure is nice.
In case I use the SAS Enhanced Editor and SAS autosaves the current version being edited to a located like this when SAS crashes.
C:\Users\&userid.\AppData\Roaming\SAS\EnhancedEditor\Autosave of rank.$AS
if the SAS program code is new to the SAS session the autosaved is named something like this, Autosave of Untitled.$AS unless the file name already exist. If Untitled.$AS exist SAS will start adding addental information such as this example, Autosave of Untitled_{0EEFDE1D-8EE2-4F17-BD31-84B31CDD804D}.
When I change the $ to an S I have a copy of the last version of the SAS program code I was working on before the SAS session was closed un-expectantly. Or in some cases if someone unplugs my PC.
I hope other SAS users have been able to find versions of their SAS code in such cases as mine. I don't like starting over when it has been mostly completed .
If you are referring to EG and not SAS, your path can be seen by clicking Tools > Options > Project Recovery.
EGP files are simply ZIP files, so you can browse their contents by renaming them and look for code entries.
If you are referring to SAS DMS, then it is up to you to save. You can sometimes retrieves bits of code from the binary files in the WORK directory if it's still there.
I do thank you @ChrisNZ for the clues. Those examples helped me find what I was looking for.
When SAS closes due to system reboots and/or actions where the user did not have a chance to save their SAS code it is nice to have a possible rollback to those SAS program codes. I have found this option very useful when coding SAS programs. I am not sure if the Admins set it up like this or if the setup is a SAS default but it sure is nice.
In case I use the SAS Enhanced Editor and SAS autosaves the current version being edited to a located like this when SAS crashes.
C:\Users\&userid.\AppData\Roaming\SAS\EnhancedEditor\Autosave of rank.$AS
if the SAS program code is new to the SAS session the autosaved is named something like this, Autosave of Untitled.$AS unless the file name already exist. If Untitled.$AS exist SAS will start adding addental information such as this example, Autosave of Untitled_{0EEFDE1D-8EE2-4F17-BD31-84B31CDD804D}.
When I change the $ to an S I have a copy of the last version of the SAS program code I was working on before the SAS session was closed un-expectantly. Or in some cases if someone unplugs my PC.
I hope other SAS users have been able to find versions of their SAS code in such cases as mine. I don't like starting over when it has been mostly completed .
Well done. I did not know that. Probably because I haven't had the chance to use SAS for years now and am stuck with $#!& EG.
Thanks for the update.
Just a few more tipps on the SAS Enhanced Editor's autosave feature:
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.