A more complete description of how MIDAS accesses tape devices can be found in the chapters Tape Devices in MIDAS and Tapeserver Installation.
In MIDAS, tape devices are accessed via the INTAPE/OUTTAPE commands. They accept logical and system devicenames for tape devices.
Midas 003> $echo $tape0
ws7:/dev/nrst1
(or just /dev/nrst1 if the tape device is located in localhost)
Midas 003> INTAPE/FITS 1-10 aaa tape0
When first started, MIDAS appends to the environment all definitions found in the configuration file /midas/98NOV/monit/devices.sh. You will have to edit this file to assign the system names for your tape devices hostname:devicename to the logical names tapename, and must follow the next convention:
where:set tapename=hostname:devicename ; export tapename # comments
The character : is the separator between hostname and devicename. An example for the file devices.sh could look like:
set tape0=ns0:/dev/nrst0 ; export tape0 # here_some_comments set tape8mm=ns2:/dev/nrst2 ; export tape8mm # here_some_comments
Also the comments for each logical tape definition (anything after the # character) can be used later for the generation of the help file /midas/98NOV/prim/help/tapede.alq (used by the MIDAS command HELP [TAPEDEVICES]) if they follow the next convention:
#:tape_type:capacity_density:locationwhere:
The MIDAS help file /midas/98NOV/prim/help/tapede.alq is generated by executing the following:
% cd /midas/98NOV/prim/help
% make tapede.alq
An entry in the file devices.sh like:
set tape0=ns0:/dev/nrst0 ; export tape0 #:DAT/DDS:1.2Gb:Tape roomwill generate an entry in the help file tapede.alq like:
Name Host Device Tape Cap/Den Location tape0 ns0 /dev/nrst0 DAT/DDS 1.2Gb Tape room
Midas 003> INTAPE/FITS 1-10 aaa ws7:/dev/nrst1
(or if the tape device is located in localhost)
Midas 003> INTAPE/FITS 1-10 aaa /dev/nrst1