11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

REWIND<br />

Syntax<br />

REWIND [UNIT(mu.expr)] {THEN statements [END] | ELSE statements [END]}<br />

Description<br />

The <strong>UniBasic</strong> REWIND command rewinds a tape.<br />

Note: Before you can use the REWIND command, you must reserve a tape drive for<br />

use with the T.ATT command. For information about ECL T.ATT, see the UniData<br />

<strong>Commands</strong> <strong>Reference</strong>.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

UNIT(mu.expr) Specifies the conversion code (first digit), and the unit number<br />

(second digit). UniData allows unit numbers from 0 through 9.<br />

The mu.expr is optional and the default value is UNIT (00) for<br />

tape unit 0 with no conversion (ASCII assumed).<br />

0 – No conversion (ASCII assumed).<br />

1 – EBCDIC conversion.<br />

2 – Invert high bit.<br />

3 – Swap bytes.<br />

THEN statements END THEN executes if the rewind is successful. END is required to<br />

terminate multiline THEN statements.<br />

ELSE statements END ELSE executes if the rewind is not successful. END is required<br />

to terminate multiline ELSE statements.<br />

REWIND Parameters<br />

REWIND 1-691

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!