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

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

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

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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