11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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 />

mu.expr is optional. The default value is 00, indicating tape unit<br />

0 and no conversion:<br />

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

1 – EBCDIC conversion<br />

2 – Invert high bit<br />

3 – Swap bytes<br />

var Specifies a variable to contain the record.<br />

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

terminate multiline THEN statements.<br />

ELSE statements END ELSE executes if the read is not successful or the record does not<br />

exist. END is required to terminate multiline ELSE statements.<br />

READT Parameters<br />

STATUS Function Return Values<br />

After you execute READT, the STATUS function returns one of the values described<br />

in the following table.<br />

Value Description<br />

0 Successful read.<br />

1 End of file encountered.<br />

2 End of tape encountered.<br />

3 Tape not assigned.<br />

STATUS Function Return Values<br />

READT 1-641

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

Saved successfully!

Ooh no, something went wrong!