If you are using Enterprise Guide and the Autosave feature is enabled, you will be prompted to recover any program files you haven't saved the next time you open EG. I understand SAS Studio has a similar feature as does the SAS Windowing System, but the feature needs to be switched on. For more information check out the SAS online documentation. Type Autosave in the search window.