ERT (Erase Tape)

Purpose
Erase a tape from the current position until the end of the tape.
Usage notes
This function writes two tape marks at the current tape position, erases the remainder of the tape, then rewinds the tape.

ERT can be used only with tape units that support the data security erase I/O command code, such as the IBM® 3400 series.

Options
None.
Related functions
REW
Rewind a tape to its load point
RUN
Rewind a tape and unload it
WTM
Write one or more tape marks
Read syntax diagramSkip visual syntax diagram
Syntax

>>-ERT--+-----------+--OUTPUT=ddname--+---------+--------------><
        '-LABEL=BLP-'                 '-DENS=mm-'   

ddname
Refers to a DD or TSO ALLOC statement.
LABEL=BLP
Specifies that bypass label processing is used. This parameter must be specified with the first Z Data Tools function that uses the tape. For BLP processing requirements, see “Customizing the Security Environment” in the Z Data Tools Customization Guide.
mm
A 2-byte tape mode as shown in Tape density and mode values.