BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Jchapman
Calcite | Level 5

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.

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

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

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

View solution in original post

3 REPLIES 3
LinusH
Tourmaline | Level 20

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.

Data never sleeps
Ksharp
Super User

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

ChrisHemedinger
Community Manager

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

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 8560 views
  • 2 likes
  • 4 in conversation