VMS_UNLOCK_SINGLE
Enable UNLOCK to unlock only the current record
|
|
VSupported on OpenVMS
|
|
The VMS_UNLOCK_SINGLE environment variable enables the UNLOCK statement to unlock only the last record on an indexed or relative file if system option #35 is not set.
Value
Any nonzero numeric value.
Discussion
If VMS_UNLOCK_SINGLE is set, the UNLOCK statement (without RFA specified) on an indexed or relative file will unlock only the last record, as long as system option #35 is not set. If system option #35 is set, the UNLOCK statement removes all locks on the specified channel, regardless of whether or not VMS_UNLOCK_SINGLE is set.
For interoperability, xfServer sets VMS_UNLOCK_SINGLE for compatibility with Windows or Unix clients.
Setting location
The environment.
Used by
Runtime, xfServer
Examples
$ DEFINE VMS_UNLOCK_SINGLE 1