# T-WEOF

Updated: 10/19/2020, 10:24:56 AM
Created: 10/19/2020, 10:24:56 AM
Last Updated By: Daniel Klein
Read Time: 1 minute(s)

# Description

The T-WEOF command writes an end of file mark, (EOF), on the tape device media. The command takes the general form:

 T-WEOF {CHANNEL=channel}
1

where channel is the specific channel attachment (0-9).

# Note

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:

T-WEOF
1

to write an end of file mark, (EOF), at the current media position.

Back to Tape Commands