REWIND Statement

Rewinds a magnetic tape unit to the Beginning-Of-Tape mark (BOT).

Syntax

REWIND [THEN statement(s) ELSE statement(s)]

Syntax Element

statement(s) is either a THEN or an ELSE clause (or both). A statement must be included. The THEN clause is executed if the rewind is successful. The ELSE clause is executed if the tape unit has not been attached.

Comment

If you have not attached the tape (T-ATT command), the system displays the error message:

[1129] NO SUCH TAPE ASSIGNMENT EXISTS

and your program is terminated.

For more information see Tape Operations and Commands.

Example

REWIND ELSE STOP

Tape is rewound to BOT. If tape unit is not attached, the program terminates.

Go to top button