Skip to content

ENABLE

Allow Logical Disk Access

This directive removes the effects of a previous DISABLE directive and allows access to the specified logical disk directory and its files.

ENABLE disk-ident [, LOCAL] [,ERR=line-ref|,ERC=error-code]
disk-ident
is normally an integer in the range of 0 to 35 indicating the logical disk directory to be ENABLEd. Starting with release level 8.1B2, disk-ident may also be the directory name as defined in the DEV line of the IPLINPUT file.
LOCAL
is an optional modifier that restricts this action to this task only; other users on the same system are not affected by an ENABLE with the LOCAL modifier. The LOCAL modifier is required on the ENABLE to remove the effect of a DISABLE with the LOCAL modifier.
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.

LOCAL is the effective value, even if it is not specified. A logical disk directory cannot be truly DISABLEd globally.

If an attempt is made to ENABLE a logical disk directory that is already ENABLEd, an ERR=14 results.

An ENABLE must be used to counter a DISABLE; an ENABLE, LOCAL to counter a DISABLE, LOCAL.

A logical disk directory may be DISABLEd LOCALly as well as globally at the same time, requiring ENABLE, LOCAL and ENABLE to counter both.

ENABLE 3

enables logical disk directory 3, removing the effect of a DISABLE directive on the disk.

ENABLE A, LOCAL

If A=3, enables logical disk directory 3, removing the effect of a DISABLE 3, LOCAL.

DISABLE and RESERVE directives

From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF