| RETURN | Index Level | RND |
| Syntax | REWIND [THEN | ELSE | ONERR statement.block] |
| Category | BASIC |
| Type | Statement |
| 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. |
| Options | |
| See Also | THEN | ELSE statement.block ONERR statements & functions READT READTL READTX WEOF t-att t-rew statement.block IF SYSTEM IFR |
| Example |
execute 't-att'
rewind else crt 'cannot rewind the tape' stop end |
| Warnings | |
| Compatibility | D3 7.0 AP R83 |
| RETURN | Index Level | RND |