{arcane}This key is actually a red segment key that stores some tape information (such as the reel number, default format, capabilities, and label information) and has TAPEKEY as its segment keeper.
TAPEKEYF(kt ==> x'72b')
TAPEKEYF(kt+5;SB,M,AC ==> kt+5;,,,,CO)
CO(0,(n*6,reel) ==>c;TAPEKEY,NODEKEY)
Return codes
c = 1 SB not prompt
c = 2 SB has insufficient space
c = 3 reel not multiple of 6 characters
c = 4 too many reels
The designated tape reel will be mounted on an available drive. If none is available at the moment, the mount will be refused. If the tape is in use the mount will be refused.
The label is verified . If the tape is an unlabelled tape, the checksum of the first block is verified. Any tape may have its label overwritten by a Make Unlabelled operation. Any unlabelled tape that is written on at load point has its checksum updated.
Return codes
c = 1 no drives available
c = 2 tape is in use
c = 3 mount refused by operator
c = 6 tape already mounted
The designated tape reel will be mounted on an available drive. If none is available at the moment, the mount will be refused. If the tape is in use the mount will be refused.
The label is verified. If the tape is an unlabelled tape, the checksum of the first block is verified. Any tape may have its label overwritten by a Make Unlabelled operation. Any unlabelled tape that is written on at load point has its checksum updated.
Return codes
c = 1 no drives available
c = 2 tape is in use
c = 3 mount refused by operator
c = 6 the tape is already mounted
Return codes
c = 1 Tape not mounted
Return codes
c = 1 tape not mounted
c = 2 no next reel
The default format (Record format
FIXED/VARIABLE/UNFORMATTTED,
block length, and record length) is set. For labelled tapes
these values are overridden by the values in the tape label
(for input) or by values specified on the OPEN of files
for output. For unlabelled tapes, these values may be overridden
at OPEN.
BLKSIZE is between 0 and 32769. LRECL is between 0 and 4097. DEN is one of the following values; 2,3,4,5 where 2 means 800 bpi,3 means 1600 bpi,4 means 6250 and 5 means (future density).
Return codes
c = 1 not allowed
c = 2 length not 5 or 6 bytes
c = 3 recfm not F or V or U
c = 4 lrecl not 0<<4097
c = 5 blocksize not 0<<32769
c = 6 density specification is invalid
A new key is generated. It may have more restricted rights than the key it comes from. The key may be rescinded (kt+4). The capability mask is a 1 byte mask with each bit representing a restriction of rights.
Mask
x'08' disallow make unlabelled operation.
x'10' disallow release tape operation. {This restriction is always present in any key that is a descendant of the key obtained from the tape librarian key}.
x'20' disallow set format operation.
x'40' disallow write operation.
x'80' disallow read operation.
c = 1 bad mask {more than 1 byte}
c = 2 cannot copy key {tape is mounted}
Return codes
c = 1 offered key is not a tape key
c = 2 offered tapekey is not the master
c = 3 this tapekey is not the master
c = 4 tapekeys do not have the same label type
c = 5 tapekeys are the same
Return codes
Extended jump protocol is used.
Return Codes
c = 1 complete, tape not release to library (no release rights).