Previous Page | Next Page

Data Set Options under OpenVMS

LOCKWAIT= Data Set Option: OpenVMS



Indicates whether SAS should wait for a locked record.
Default: NO
Valid in: DATA step and PROC steps
Category: Observation Control
Engines: CONCUR
OpenVMS specifics: All aspects are host-specific

Syntax
Details
See Also

Syntax

LOCKWAIT=YES | NO | n

YES

tells OpenVMS RMS to wait when it is requesting access to locked records. If you specify LOCKWAIT=YES, OpenVMS RMS waits forever. Even if LOCKREAD=NO is in effect, the record is not read.

NO

tells OpenVMS RMS not to wait for a locked record to become available. If a record is locked and LOCKREAD=NO is in effect, SAS reads the record anyway. This can result in obsolete data being read. If LOCKREAD=YES is in effect, the I/O request fails.

n

tells OpenVMS RMS to wait for n seconds for a locked record. If the record becomes available within n seconds, the record is read. If the record does not become available and LOCKREAD=YES is in effect, the I/O request fails. If the record does not become available and LOCKREAD=NO is in effect, the record is read even though it is locked. Note, however, that you can read obsolete data in this case. The value of n can range from 1 to 255.


Details

The LOCKWAIT= data set option indicates whether OpenVMS RMS should wait when requesting access to locked records for READ, WRITE, or UPDATE access. It is used with the LOCKREAD= data set option.


See Also

Previous Page | Next Page | Top of Page