rewind Statement

The rewind statement rewinds the currently attached magnetic tape unit to the beginning of the tape.

Syntax

rewind [then|else|onerr statement.block]

Description

If the tape is not attached or not online, the else or onerr clause, if present, is executed. Otherwise the then clause is executed. In addition, the onerr clause can be used to check for a tape unit not ready error.

Either else or onerr can be specified, but not both.

Example(s)

execute ’t-att’

rewind else

crt ’cannot rewind the tape’

stop

end

See Also

if Statement

ifr Statement

onerr Clause

readt Statement

readtx Statement

Statement Blocks

Statements and Functions

system() Function

t-att Command

t-rew Command

then/else Statement Blocks

weof Statement