BookmarkSubscribeRSS Feed
CraigSmith
Obsidian | Level 7

Hi all,

 

Just suffered a major error. None of my work is saving - just lost 3 hours of code. Massively stressed with deadlines and don't need this. 

 

"ERROR: Save FAILED."

 

Does anyone know a quick and urgent fix please 😞

 

Many thanks,

 

CraiScreenshot (124).png

 

 

 

6 REPLIES 6
SASJedi
Ammonite | Level 13
Sorry, but I don't quite understand the problem. What are you trying to save? Your code? The RTF file being generated? Where did you see the "ERROR: Save FAILED." message? In your SAS Log? In a Windows Dialog?
Check out my Jedi SAS Tricks for SAS Users
FreelanceReinh
Jade | Level 19

@SASJedi wrote:
Where did you see the "ERROR: Save FAILED." message?

See the error message in the status bar in the screenshot.

Quentin
Super User

I've never seen that error, but I have had cases where hitting save didn't actually save, and I had to hit it a few times.  I think this is a result of all the background scans/backups running on my corp PC sometimes locking files.

 

I would start by thinking about *where* you are trying to save the .sas file.  Is it local to your PC, or on some network share.  Make sure you have write access to the folder.  Saving to a local location on windows may be faster/safer because no wifi/network in the middle.  Also, save early save often.  

The Boston Area SAS Users Group is hosting free webinars!
Next up: Troy Martin Hughes presents Calling Open-Source Python Functions within SAS PROC FCMP: A Google Maps API Geocoding Adventure on Wednesday April 23.
Register now at https://www.basug.org/events.
AllanBowe
Barite | Level 11

It's probably a permissions issue, but one option could be to use an alternative IDE for running SAS.

 

VS Code for instance.. This will autosave your work, and keep a cached copy even if it can't be saved.

https://www.youtube.com/watch?v=HrcsR_4OVBU

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs
FreelanceReinh
Jade | Level 19

Hi @CraigSmith,

 


@CraigSmith wrote:

... just lost 3 hours of code. Massively stressed with deadlines ...


Sorry to hear this.

 

  1. As a first emergency measure I would select all code that is currently in the Enhanced Editor (CTRL-A), copy/paste it into another application (e.g., Notepad) and save it from there.
  2. Depending on how code was lost, it is possible to recover it by repeatedly pressing F4 (if the code was submitted in the same SAS session) or Ctrl-Z (if it was overwritten in the editor) or from the Autosave location, under Windows typically found in
    C:\Users\username\AppData\Roaming\SAS\EnhancedEditor\Autosave of programname.$AS
    (where C may or may not be your local C drive, but possibly on a terminal server such as Citrix). These .$AS files are text files and so can be opened with Notepad.
    Another chance is that the code (or at least a previous version of it) was saved by the general backup process of your organization. See for example the "Previous Versions" tab of the file or folder properties of the file/folder in question or ask your IT.
  3. To diagnose the issue (damaged file? hardware failure? access permissions? ...) I would first check if SAS can save the code elsewhere ("Save as..."), i.e., under a different name or in a different folder on the same drive, on a different drive or on a different computer (via the network). Then I would try to save a small test file from a different application in the same folder where SAS failed to save. If those tests indicate that not only SAS is affected, then it's time to call the IT, leaving the current SAS session open.

Good luck!

Kurt_Bremser
Super User

Hit ctrl-a, followed by ctrl-c. Then open Notepad or similar, and hit ctrl-v. Then save it as text.

This way you get a copy outside of SAS.

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 6 replies
  • 1627 views
  • 4 likes
  • 6 in conversation