Problem Note 18117: Code might be lost when saving from SAS® Enterprise Guide®
SAS Enterprise Guide is designed to allow you to right-click on a code
node and choose Delete to remove the code node from the project without
removing the .SAS program file from disk; however, with certain steps,
the .SAS program code can be lost.
To circumvent the problem, do not use Delete code until this defect has
NOTE: The steps below demonstrate how the problem can be recreated and
should only be used for testing purposes.
Open SAS Enterprise Guide.
Click File ► New ► Code; enter a few lines of code.
Click File ► Save code as ► Server ► test.sas
Close SAS Enterprise Guide.
Reopen SAS Enterprise Guide and create a new project.
Click File ► Open code from server and select bug.sas
Close the code window.
Left-click the code node and then click File ► Save code as
to the same server location. When prompted, select Yes to replace.
At this point, you will get an invalid error:
An error occurred saving the file.
Requested file already accessed for update.
Right-click the code node and delete.
Click File ► Open code from sas server and select test.sas. The code will be empty.
Additionally, when using Save As to save a .sas or .txt or .log file to
a Unix SAS server, subsequent saves will fail with the above error.
Saving the same file to the local client machine will work fine.
Select the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS Enterprise Guide
Microsoft Windows XP Professional
9.1 TS1M3 SP1
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
A fix for this issue for Enterprise Guide 4.1 is available at: