Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)
The T-WEOF command writes an end of file mark, (EOF), on the tape device media. The command takes the general form:
where channel is the specific channel attachment (0-9).
Two consecutive EOFs without a tape label or any data blocks in between signify an empty tape file. Most device drivers and utilities determine this occurrence as end of media, (EOM), and will stop any further processing.
Most utilities which write to tape devices, e.g. T-DUMP, will automatically write an EOF after the data blocks of the tape file. Therefore executing a T-WEOF command after a T-DUMP will produce two consecutive EOFs, which can then be used to indicate end of recorded media to a reading utility program.
An example of use may be as:
to write an end of file mark, (EOF), at the current media position.
Back to Tape Commands