Sas workspace on SaS EG

1.9k views Asked by At

We have default SAS workspace of x TB. We also have alternate 10X TB workspace on same server at different folder location.

Can anyone please help me with syntax that can be used in SAS EG to point to the alternate workspace instead of default one?

5

There are 5 answers

0
Scott V On

Are you referring to the SAS work library, which is the location where SAS lets you store temporary data sets?

If so, then it depends. Are you using EG to in a client/server setup? In that setup you will have to get your SAS Admin to make changes on the server or in the SAS Metadata to point the work library for all Workspace Servers that start to use the other location that has more available space.

0
dcudonk On

Would you not define SAS libraries out of these workspaces?

i.e. libname mydata '/folders/myfolders/'

This will then assign each library to your active SAS session.

Use this as precode to any manipulation your doing.

If you have Management Console, or Using PROC METADATA you can create permanent libraries.

0
Mark A. On

The SAS work directory can be changed for individuals by creating a $HOME/sasv9.cfg file and placing one line in it:

-WORK {full path to the SAS work directory}

0
Harlan Nelson On

You mentioned workspace, so I assume you need to control the WORK library.

Use the SAS system option

options work=library-specification

In the SAS documentation it states: specifies the libref or physical name of the storage space where all data sets with one-level names are stored. This library must exist.

Make sure the the file space is "close" to where the processing is done or file transfer will be a bottleneck.

0
DebG9317 On

if you are running in unix, you can change the work directory in the execution. nohup sas -work /myworkdirectory mypgm.sas &