RESERVE
Reserve Logical Disk for Exclusive Use
Restricts access to a logical disk directory by any other task except the issuing task.
Syntax
Section titled “Syntax”RESERVE disk-num [,ERR=line-ref|,ERC=error-code]disk-num- specifies the logical disk directory to RESERVE. Valid values are 0 through 35.
line-ref- is the program line number or label to branch to if this directive produces an error.
error-code- is a programmer-defined error code. Valid values are positive or negative whole numbers.
Remarks
Section titled “Remarks”Each task is independent and may issue a RESERVE directive, but the RESERVE does not impact other tasks executing on the same system or network.
If an attempt is made to RESERVE a logical disk directory which cannot be RESERVEd, an ERR=0 results.
RESERVE remains in effect until the task that issued the directive issues an ENABLE directive for that logical disk directory or the task is terminated with the RELEASE directive.
Examples
Section titled “Examples”RESERVE XIf X = 4, allows logical disk directory 4 to be accessed only by the task that issued the directive.
See also
Section titled “See also”From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF