The rewind statement rewinds the currently attached magnetic tape unit to the beginning of the tape.
rewind [then|else|onerr statement.block]
If the tape is not attached or not online, the else or onerr clause, if present, is executed. Otherwise the then clause is executed. In addition, the onerr clause can be used to check for a tape unit not ready error.
Either else or onerr can be specified, but not both.
execute ’t-att’ rewind else crt ’cannot rewind the tape’ stop end