Rewinds a magnetic tape unit to the Beginning-Of-Tape mark (BOT).
REWIND [THEN statement(s) | ELSE statement(s)]
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.
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.
REWIND ELSE STOP
Tape is rewound to BOT. If tape unit is not attached, the program terminates.