|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]|
execute 't-att' rewind else crt 'cannot rewind the tape' stop end