User's Guide

Commands: Erase (19h) Page 37
ERASE (19h)
The ERASE command creates an EOD (end-of-recorded data) marker at the current
position of the tape when the command is issued, thus rendering the remainder of
the tape unreadable.
ERASE Command Descriptor Block
The following table shows the layout of the CDB.
Byte
Bits
7 6 5 4 3 2 1 0
0 0 0 0 1 1 0 0 1
1 0 0 0 0 0 0 IMMED Long
2 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0 0
5 vendor unique* 0 0 0 0 Flag Link
* This vendor-unique field is reserved and must be set to zero.
Command Descriptor Block Field Description
The following table defines the fields in the CDB.
Field Name Bytes Bits Description
IMMED 1 1 If the IMMED (Immediate) Bit is 1, status is to be returned as
soon as the ERASE command is accepted and verified. If the
IMMED bit is 0, status is not returned until the tape is erased.
Long 1 0 If the Long bit is 0 or 1, a short ERASE is performed, and EOD
is recorded at the current tape position.
Completion Status
The Completion Status for the ERASE command is shown in the following table.
Code Message Description
00h
Good Status
The drive remains in any previously set modes.
The drive is ready to perform any appropriate command.
02h
Check
Condition
Extended Sense Byte 02h
Code Message Description
02h Not Ready No cartridge is inserted in the drive.
04h Hardware Error Parity error on SCSI bus or drive
hardware failure detected.
05h Illegal Request
The CDB contains an invalid bit.
Both IMMED bit and Link bit are set to 1.
06h Unit Attention
Cartridge was changed prior to accepting
this command.
Drive was reset prior to this command.
07h Write Protect The cartridge in the drive is write protected.