tcl.set-device Verb: Access/TCL

tcl.set-device

Command tcl.set-device Verb: Access/TCL
Applicable release versions: AP/Unix
Category TCL (746)
Description attaches the sct, floppy or half-inch or special devices.

This command is a more generalized form of the standard "set-half", "set-sct", "set-8mm" or "set-floppy" commands.

"device" may be expressed as a number, through options or by up to three keywords extracted from the fields DEVICE, TYPE or OPTIONS in the list-device command. Devices are numbered from 0 to 9 as they appear in the configuration file. Note that the options may not allow complete selection. If a system has two identical devices, for example, two 5 1/4" floppy drives, the options will select only the first. The form with a device number must be used for these cases, using either the device number or the Unix device name as keyword. If no argument is provided, "set-device" simply lists the currently defined devices, as list-device.

"device" is a device number, from 0 to 15, obtained from the "list-device" command or can be composed of up to three keywords identifying the device.

The available keywords are: 720k, 1.2M, 1.44M, 3 1/2", 5 1/4", floppy, sct, 8mm and "half inch". As of release 6.0, 2.88 megabyte diskette drives are supported.
Syntax set-device {?} {(options}
set-device {device} {(options}
set-device {keyword} {(options}
Options 3 3-1/2" floppy.

5 5-1/4" floppy.

9 9-track, 1/2" tape.

a 5-1/4" floppy.

b 3-1/2" floppy.

c Changes the 8mm tape block size. The current tape block size is displayed and the operator is prompted for the new block size (0 or 512). On AP/Unix Systems, the default block size is set at "0" (zero) at install time. Zero means variable-length.

e Selects 2.88mb floppy. (AP 5.2.5 and higher only).

f Floppy (3-1/2" or 5-1/4" as default)

h High density (1.44M for 3-1/2" floppy, 1.2M for 5-1/2" floppy, 6250 bpi for 9-track tapes, 150M for Quarter Inch tapes).

i Suppresses display of devices after the command is complete (used in macros).

k Hard disk "pseudo" tapes. These devices are removable or fixed hard disks or regular Unix files. Their size is fixed and determined by the device or by the maximum file size for a user. The main usage for these devices is for small, fast t-dumps/saves, transaction logging or incremental saves.

l Low density (720K for 3-1/2" floppy, 1600 bpi for 9-track tapes).

m Medium density (720K for 5-1/4" floppy, 3600 bpi for 9-track tapes).

n Network "pseudo" tape. This device has an 'infinite' size. It is assumed another system is reading the data at the 'other end' of the network.

q quarter Inch tape.

r Prevents an automatic rewind on the device. This option must be used to set the device to a floppy with an unformatted floppy disk in the drive.

s Standard density (360 for 5-1/2" floppy, 60M or 120M for quarter-inch (SCT) tapes.
Example
set-device floppy 1.44m
Selects the 3 1/2" floppy.

set-device rmt0
Selects the tape device associated with the Unix device /dev/rmt0.
Purpose
Related tcl.list-device
tcl.set-half
tcl.file-save
tcl.admin.tape
tape.handling.verbs
tcl.fuser
basic.writet
tcl.admin.tape.setup
tcl.:files
tcl.set-8mm
tcl.sel-restore
basic.readtl
basic.readtx
ue.313c
ue.e070
tcl.chg-device
access.tape
tcl.set-floppy
tcl.set-sct
tcl.t-select
tcl.config.tape
tcl.t-stat
tcl.account-restore
transaction.logger
tcl.t-att