UNLOCK Verb - Unlock File

Syntax

UNLOCK (channelno{,ERR=lineref})

Description

The UNLOCK verb unlocks a file previously locked with a LOCK statement. The file is then available for use by other processes. If the file was not previously locked with a LOCK verb, PRO/5 issues an error.

Files implicitly LOCKed by using of the ISZ= option on OPEN must be CLOSEd to be UNLOCKed.

Examples

1000 UNLOCK(1,ERR=9500)

See Also

Verbs - Alphabetical Listing