Used to lock records or files.
Argument | Input/Output | Value |
---|---|---|
CODE | Input | 5 |
Output | unchanged | |
BFS | Input | BFS List |
Output | unchanged | |
HANDLE | Input | File Handle |
Output | unchanged | |
NAME | Input | Record Key, if a record is being locked; NULL if a file is being locked |
Output | unchanged | |
FMC | Input | Lock Type |
Output | unchanged | |
RECORD | Input | null |
Output | Lock semaphore | |
STATUS | Input | unassigned |
Output | TRUE$ if lock successful |
The MFS should not alter the semaphore returned in the RECORD argument. This information is used by the system to set lock information stored internally in the system.
BASIC+ LOCK statement