DataBasic Reference > Statements and Intrinsic Functions > R > REWIND Statement

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

REWIND Statement (DataBasic) (m618703+rewind_s.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

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.

RealityV15.0Comment on this topic