TOPS-20 User's Guide
Chapter 7 Using magnetic tape
This chapter describes:
Magnetic tape provides off-line storage for data. You
put data onto tape for storage using the COPY command,
DUMPER program, or a program of your own. (For a complete
description of the DUMPER program, refer to the TOPS-20 User
Utilities Guide.) Tapes can be labelled or unlabelled. An
unlabelled tape is identified only by a gummed label on the
outside of the tape reel. A labelled tape is identified by
the information contained internally on the tape as well as
a gummed label on the outside of the tape reel. Refer to
the TOPS-20 Tape Processing Manual for more information on
labelled and unlabelled tapes.
Before you use an unlabelled tape, give the INFORMATION
SYSTEM-STATUS command to find out if the tape allocation
facility of TOPS-20 is enabled. The process to gain and
release access to a tape differs, depending upon whether
this tape allocation facility is in use. (Refer to the
TOPS-20 System Manager's Guide for an explanation of tape
allocation.)
If tape allocation is enabled on your system, you can
mount an unlabelled tape by giving the MOUNT TAPE command
followed by the name of the tape (the name that appears on
the gummed label). Before you give the MOUNT TAPE command,
tell the operator the name you selected for your tape or ask
him to get the tape from the tape library. After you give
the MOUNT TAPE command, you must wait until the operator
mounts the tape, and the system prints a message telling you
that the tape is mounted.
You can include the /NOWAIT switch with your MOUNT TAPE
command. By including this switch, you do not have to wait
for a response from the operator and you can continue
working until the tape is mounted. When you use the /NOWAIT
switch, you can also check on your mount request by giving
the INFORMATION MOUNT-REQUESTS command.
If you want to remove the request from the queue before
the tape is mounted, type a CTRL/C to return to command
level, then give the CANCEL MOUNT command. If you included
a /NOWAIT switch with the MOUNT TAPE command, you can simply
give the CANCEL MOUNT command.
After the operator mounts the tape, the system sends a
message advising you that the tape is ready for your use.
You can now run your program.
When you complete your work, give the DISMOUNT TAPE
command, followed by the name of the tape. The system
prints a message telling you that the tape is dismounted.
If tape allocation is not enabled on your system, you
must first assign a tape drive for your job. To find out
which tape devices are available, give the INFORMATION
AVAILABLE-DEVICES command.
Assign one of the devices beginning with 'MTA'. The
example shows assigning drive 2.
After assigning the drive to your job, you can run the
PLEASE program and ask the operator to mount your tape.
When you complete your work, give the UNLOAD command.
This command unloads the magnetic tape by rewinding it
entirely onto the source reel.
After you give the UNLOAD command, give the DEASSIGN
command. The DEASSIGN command returns the device you had
previously ASSIGNed back to the pool of available devices.
If you forget to do this, no other user can use the device
until you log out.
You must make sure that you read and write the data on
the tape with the proper tape parameters set. Give the
INFORMATION TAPE-PARAMETERS command.
These parameters work for most tape transfers; if you
have to change any of the parameters, give the SET TAPE
command.
These changed parameters remain in effect until you log
off, or change the parameters.
Not every tape drive supports every parameter. Check
with your system manager to find out what drive types are
available on your system and which parameters work with each
drive type.
If you set a parameter by giving a DUMPER command, that
parameter affects only the DUMPER operations and does not
change your job defaults. For a complete description of
DUMPER, refer to the TOPS-20 User Utilities Guide.
There are commands that position a magnetic tape:
BACKSPACE, REWIND, and SKIP. The BACKSPACE command
backspaces the tape over a certain number of records or
files on unlabeled tapes, and over a certain number of files
on labeled tapes; the REWIND command rewinds the tape to the
beginning of the tape; the SKIP command advances the
magnetic tape a certain number of records or files on
unlabeled tapes, and a certain number of files on labeled
tapes.
7.1 Using magnetic tape storage
7.2 Using unlabelled tapes
7.2.1 Using Unlabelled Tapes with Tape Allocation Enabled
@MOUNT TAPE (NAME) ACE1:
[Tape set ACE1, volume ACE1 mounted]
[ACE1: defined as MT0:]
@MOUNT TAPE (NAME) ACE1: /NOWAIT
@DISMOUNT TAPE (NAME) ACE1:
[Tape dismounted, logical name ACE1: deleted]
7.2.2 Using Unlabeled Tapes with Tape Allocation Disabled
@INFORMATION (ABOUT) AVAILABLE-DEVICES
Devices available to this job:
DSK, PS, ADMIN, MTA1, MTA2, LPT, CDR, PTY15, NUL
Devices assigned to/opened by this job: TTY23
@ASSIGN (DEVICE) MTA2:
@PLEASE
Enter text, terminate with CTRL/Z to wait for response
Or ESC to send message and Exit
Please mount tape TEST:<CTRL/Z>
[PLSOPN Operator at GIDNEY has been notified at 11:18:32]
11:36:04 From Operator at terminal 2
=>Your tape is mounted
Enter new text (Same terminators)
Thanks<ESC>
7.2.3 Setting Tape Parameters
@INFORMATION (ABOUT) TAPE-PARAMETERS
SET TAPE DENSITY 1600
SET TAPE PARITY ODD
SET TAPE FORMAT CORE-DUMP
SET TAPE RECORD-LENGTH 512
@SET TAPE DENSITY (TO) 800
7.2.4 Positioning the Tape
@SKIP (DEVICE) MTA2: 4 FILES