REWIND

REWIND statement issueS a rewind command to the device attached to the specified channel.

COMMAND SYNTAX

    REWIND { ON expression } THEN | ELSE statements

SYNTAX ELEMENTS

expression, if specified, should evaluate to an integer in the range 0 to 9. Default is 0.

NOTES

If the statement fails to issue the rewind then any statements associated with the ELSE clause are executed. If the statement successfully issues the rewind command then the statements associated with any THEN clause are executed. Either or both of the THEN and ELSE clauses must be specified with the statement.

If the statement fails then the reason for failure can be determined via the value of SYSTEM(0) as follows:

CodeDescription
1There is no media attached to the channel
2There is an end for file mark
Last update: Sat, 16 Jul 2022 15:34