basic.rewind Statement/BASIC Program

basic.rewind

Command basic.rewind Statement/BASIC Program
Applicable release versions: AP, R83
Category BASIC Program (486)
Description rewinds the currently attached magnetic media unit to the "beginning" of the media.

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

Either "else" or "onerr" may be specified, but not both. See the "then/else construct" for an explanation on the use of "then" and "else" clauses in statements that allow or require them.
Syntax rewind [then | else | onerr statement.block]
Options
Example
execute 't-att'
rewind else
  crt 'cannot rewind the tape'
  stop
end
Purpose
Related basic.then/else.construct
basic.onerr
basic.statements
basic.readt
basic.readtl
basic.readtx
basic.weof
tcl.t-att
tcl.t-rew
statement.block
basic.if
basic.system
basic.ifr