t-det

t-det


t-chk Index Level t-eod
Syntax t-det {device.number} {(option}
Category Tape
Type Verb
Description detaches the tape from the current process, or from another process.

If no device.number is specified then the currently attached tape device is detached (on releases 6.1 and greater, all devices currently attached to this process would be detached).

On D3/Unix systems, this command detaches the tape from the current port, so that other processes, other Unix users, or other Pick virtual machines may use it.

On releases 6.1 and greater, the device.number must be specified or all tape devices attached to this port are detached.

On D3/Unix systems, the "u" option has to send a Unix signal to the process which owns the tape to force it to close the device. This is done through the 'trap' mechanism (see the TCL command 'trap'). The default trap for this signal is the TCL command 't-det'. If the System Administrator disables this trap, or uses another command (like displaying a message to ask the user to detach the tape instead of taking the tape forcefully), the command fails with the message "The tape is not available for use now". The "z" option works only if the owner is the transaction logger.

On D3 7.1 and above, the t-det (u must be utilized with a specific tape device number or the (u option is ignored.
Options u    Detaches the tape unit from any port except the Spooler, which detaches automatically at the end of each job, and the transaction logger. This requires a sys2 privilege level. On releases 6.1 and greater, the device.number must be specified or all tape devices are detached.
See Also t-status tape handling verbs trap port.number t-select t-stat transaction logger t-det
Example
Warnings The device.number parameter is available on releases 6.1 and greater.
Compatibility D3 7.0 D3 7.1 AP R83
t-chk Index Level t-eod