Normally, SAS returns an error if the file that it attempts to access is locked. With the
FILELOCKWAIT= system option, you can limit or turn on the amount of time SAS
waits for a locked file to become available. When you set FILELOCKWAIT= to a value
of wait-time, SAS waits the specified amount of time for the file to become available
before failing. When the time limit is reached, SAS returns a locked-file error and the
DATA step fails. The maximum time that you can set to wait for a locked file is 10
minutes. When you set FILELOCKWAIT= to 0, SAS immediately fails.
The FILELOCKWAIT system option is used primarily by a system administrator, who
can change the default value of FILELOCKWAIT= by using the FILELOCKWAITMAX
system option. This option can also be restricted by a system administrator.
You can also use the FILELOCKWAIT= statement option in the LIBNAME statement to
set a time limit for the files in your library.
FILELOCKWAITMAX= System Option: Windows
Sets an upper limit on the amount of time that SAS waits for a locked file.
configuration file, SAS invocation
Files: SAS Files
specifies the amount of time, in seconds, that SAS waits for a locked file to become
0 - 600
Specifying the FILELOCKWAITMAX= system option can have an
adverse effect on one or more SAS/SHARE server and client sessions
that are waiting for the release of a SAS file that is locked by another
process. One or more wait conditions could lead to failed processes for
a SAS/SHARE server and clients.
To prevent the possibility of a failed SAS/SHARE process, you can
specify FILELOCKWAITMAX=0, which cancels the amount of time
that a SAS/SHARE server and clients would wait for the release of a
locked file. Canceling the wait time would prevent a failed process.
Chapter 22 • SAS System Options under Windows