Where is the configuration file to change the work directory for enterprise guide? i have changed the foundation/.../nls/en folder but this only applies to base SAS not SAS\EG.
The WORK library is set by the SAS Configuration, which for remote servers is defined in a sasv9.cfg file somewhere in the Config folders or where the application is installed. On window the default setting looks like this:
-WORK "!TEMP\SAS Temporary Files"
That !TEMP variable is a Windows environment variable, and is expanded at runtime and resolves to something like:
WORK=C:\Users\sassrv\AppData\Local\Temp\SAS Temporary Files\_TD8620_L77841_\Prc2
If you're looking to control where EG uses its own "scratch" space (different than the WORK library) on the local PC, you can change that by modifying the SEGuide.exe.config file (located in the application install folder) to override the TEMP environment variable. It would look like this:
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <section name="Environment" type="SAS.EG.Configuration.EnvironmentSection, SAS.EG.Utilities"/> </configSections> <microsoft.web.services3> <policy fileName="wse3policyCache.config" /> </microsoft.web.services3> <!-- Example Environment Section, which sets the environment variables EGTMP, TEMP and TMP --> <Environment> <Variables> <add name="TEMP" value="c:\MyTEMPArea\temp" /> </Variables> </Environment> </configuration>
This temp space is used by EG to hold project elements/files as you work in your EG session, cache server files, and more. The folder *should* be cleaned up automatically when you close your EG session.
Chris
If you mean the (SAS)work libraray, it is the same, EG does not have an own work, it uses SAS Foundation as a compute server, which could be local or remote.
Try this .But you need have appropriate right to fold 'c:\temp' .
libname x v9 'c:\temp'; options user=x ; data class; set sashelp.class; run;
Xia Keshan
The WORK library is set by the SAS Configuration, which for remote servers is defined in a sasv9.cfg file somewhere in the Config folders or where the application is installed. On window the default setting looks like this:
-WORK "!TEMP\SAS Temporary Files"
That !TEMP variable is a Windows environment variable, and is expanded at runtime and resolves to something like:
WORK=C:\Users\sassrv\AppData\Local\Temp\SAS Temporary Files\_TD8620_L77841_\Prc2
If you're looking to control where EG uses its own "scratch" space (different than the WORK library) on the local PC, you can change that by modifying the SEGuide.exe.config file (located in the application install folder) to override the TEMP environment variable. It would look like this:
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <section name="Environment" type="SAS.EG.Configuration.EnvironmentSection, SAS.EG.Utilities"/> </configSections> <microsoft.web.services3> <policy fileName="wse3policyCache.config" /> </microsoft.web.services3> <!-- Example Environment Section, which sets the environment variables EGTMP, TEMP and TMP --> <Environment> <Variables> <add name="TEMP" value="c:\MyTEMPArea\temp" /> </Variables> </Environment> </configuration>
This temp space is used by EG to hold project elements/files as you work in your EG session, cache server files, and more. The folder *should* be cleaned up automatically when you close your EG session.
Chris
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 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.