Configure Temporary Storage for SAS Utility Files

Overview

SAS Federation Server and other SAS applications create temporary utility files that are written to the default /tmp or /temp directory that is set in your environment. It is recommended that you specify a location for these files to ensure that there is enough space for processes, such as threaded applications, to create utility files.
Utility files are not compressed and can contain sensitive information. Therefore, restrict access to these files and store them in an appropriately protected subdirectory. Access to utility files should be limited to the process that created them.

The Directory Location

Use one of the procedures below to configure an environment variable to accommodate the utility directory and files. The name of the SAS utility directory is determined by the following:
SAS_util<serial><pid>_<node>
  • <serial> is a unique 4- to 6-digit hexadecimal serial number that distinguishes each directory from the other directories that are created by the same process.
  • <pid> is the process ID number, which is represented as an 8 digit hexadecimal number.
  • <node> is the name of the host, or machine on which the process is running.

UNIX

In UNIX, set the location for utility files using TKUTILLOC in an export statement:
export TKUTILLOC=~directory_1/dfs
The utility directory and files are created in the specified directory. When SAS Federation Server is started, you should see a directory similar to SAS_util000100000EF0_machine-name that contains *.utl files

Windows

In Windows, use the Control Panel to set the TKUTILLOC environment variable:
  1. From the Control Panel, select System and Security and then select System.
  2. Select Advanced system settings to open the System Properties window.
  3. Click on environment variables.
  4. Under system variables click New and set TKUTILLOC as the variable name with the path to the directory that will store utility files. Utility files contain a .utl extension.
  5. Click OK and start the Federation Server.
When SAS Federation Server is started, you should see a directory similar to SAS_util000100000EF0_machine-name that contains *.utl files.
Note: If you set the directory to a location that does not exist, TKUTILLOC does not create the directory and reverts to the default temporary directory, for example, in Windows, C:\Users\user_1\AppData\Local\Temp.
Last updated: March 6, 2018