Hi SAS community,
Having one of those days. I accidently exited the window for my SAS Programming Log (where I enter all my lines of code) without pressing save first. I have not touched anything since. Is there a way I can retrieve with all my code I just wrote?
Any help would be greatly appreciated. It has been about 2 hours since I formally pressed saved and have been coding during that time.
T.
The LOG does not have the code, it has the log messages for the code you ran before.
If you are using SAS Display Manager just run the LOG command from a command line or command box and the log should open again.
If you are using SAS Display Manager and you want to recall the code you have already submitted then go to an editor window and use the RECALL command. You might have that command mapped to the F4 key.
The answer will most likely depend on what you are using to write your SAS code. Are you using Enterprise Guide? SAS Studio? PC SAS? Something else?
The LOG does not have the code, it has the log messages for the code you ran before.
If you are using SAS Display Manager just run the LOG command from a command line or command box and the log should open again.
If you are using SAS Display Manager and you want to recall the code you have already submitted then go to an editor window and use the RECALL command. You might have that command mapped to the F4 key.
Log or Program window?
SAS Studio?
Did you close or reset SAS Studio?
I you ran the code, you can check the log history by clicking the clock icon on the browser in SAS Studio.
If you're using SAS EG or Foundation/Base and you have autosave you may be able to find the program in the autosave folder.Search in here for the location of that folder.
Thank you Reeza, this was really helpful information. I will keep this in mind for the future.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.