![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS Companion for UNIX Environments |
If more than one user accesses a SAS file at the same time or if a single user has access to the same file from different SAS sessions, the results are unpredictable. By default, the FILELOCKS system option is set to FAIL, which prevents simultaneous access to the same SAS file. (See FILELOCKS.) If FILELOCKS has been set to NONE, then you should do one of the following:
sasuser directory is unique
for each SAS session. Typically, the system administrator assigns this directory
in the system configuration file. The specification in that file or in your
personal configuration file helps ensure that the directory is unique as long
as you run only one SAS session at a time.
If you run two or more SAS sessions simultaneously,
you can guarantee unique user files by specifying different
sasuser directories for each session. In the first session, you can use
-sasuser ~/sasuserIn the nth session, you can use
-sasuser ~/sasusernFor details, see Processing Configuration Files and SASUSER. The RSASUSER option can be used to control modifications to the SASUSER library when it is shared by several users (see RSASUSER).
| Sharing Files in a Network |
If the licensed workstations are connected via NFS mounts so that they share a file system, they can all share a single copy of the SAS System executables, although this is not necessary. They can also share SAS files. However, if a SAS session attempts to update a data set or catalog, it must obtain an exclusive file lock on that file to prevent other sessions from accessing that file.
When the SAS System is installed on workstations of different types that are connected via NFS, each type of workstation must have its own copy of the SAS System executables. Catalogs and data sets, however, may be shared between certain combinations of machine types.
If the data set or catalog you want to process exists on your network but cannot be accessed with the LIBNAME statement because it resides on a different type of workstation, you have several alternatives:
test.ssd01 and the other will be stored in file
test.ssd02.
The SAS System may hang when accessing data over NFS
mounts if the FILELOCKS option is set to
FAIL or
CONTINUE.
To alleviate the problem, make sure that all NFS filelocking daemons are
running on both machines (usually
statd and
lockd).
Note: To test whether there is a problem with file locking, you can set the
FILELOCKS system option to
NONE temporarily. It is recommended
that you do not set
FILELOCKS
to
NONE permanently. ![[cautionend]](../common/images/cautend.gif)
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.