Chapter Contents

Previous

Next
SAS Companion for UNIX Environments

Sharing Files

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:


Sharing Files in a Network

The SAS System can be licensed to run on one or more workstations in a network of similar machines. The license specifically lists the workstations that the SAS System can run on. Other workstations in the network may have access to the executable files for the SAS System but not be able to run the SAS System.

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:

To allow machines that cannot share SAS data sets or catalogs to coexist in the same networked file system, the SAS System adds a two-digit suffix to the file extensions. For example, if two SAS data sets named TEST are created on machines with different underlying architectures, one will be stored in file 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]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.