basic.readtl Statement/BASIC Program

basic.readtl

Command basic.readtl Statement/BASIC Program
Applicable release versions: AP
Category BASIC Program (486)
Description reads a tape label and initializes the internal label storage area.

The "then" clause is taken if the operation is successful.

Either "else" or "onerr" can be specified, but not both. If the tape unit has not been attached or if an end-of-file (EOF) mark is read, the "else" or "onerr" clause, if present, is executed. In addition, the "onerr" statement can be used to check for end-of-tape (EOT), tape unit not ready, parity error, or block transfer error. See the system(0) function.

See the "then/else construct" for an explanation on the use of "then" and "else" clauses in statements that allow or require them.
Syntax readtl variable [then | else | onerr statement.block]
Options
Example
Purpose
Related basic.then/else.construct
basic.readtx
basic.readt
tcl.set-device
basic.onerr
statement.block
tcl.t-att
tape.label
basic.rewind
tcl.t-rdlbl
basic.statements
basic.system