Write Filemarks Command
August 2016 Commands 241
Write Filemarks Command
The Write Filemarks command writes one or more filemarks on tape starting at the
current logical position.
Note – Refer to the Write command for information about media
errors and logical end of tape (LEOT).
TABLE 3-179 Write Filemarks Command
Byte
Bit
76543210
0 Operation Code (10h)
1 Reserved WSmk Immed
2
thru
4
(MSB)
Filemark Count
(LSB)
5 Control Byte
Parameter Value
WSmk: Write Setmark bit Write Setmark bit
0 = Write filemarks
Immed: Immediate mode Immediate mode:
0 = Return status after filemarks are written on tape
1 = Return status after filemarks are in the buffer.
Note – Must be in buffered mode if the immediate bit is set
otherwise the command is rejected.
Transfer Length Number of filemarks to write
A Write Filemarks command with Transfer Length of 0, and
Immed of 0 forces all buffered data to be written on tape. No
additional filemarks are written and Good status is returned
after all buffered data is on the tape.