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.

STATUS Function Return Values<br />

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

described in the following table.<br />

Example<br />

In the following example, the T.ATT command is executed, and then UniData writes<br />

the variable TAX.RECORD to tape:<br />

PERFORM "T.ATT"<br />

WRITET UNIT (00) TAX.RECORD ELSE PRINT 'TAPE PROBLEM'<br />

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

READT, RESIZET, REWIND, WEOF<br />

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

4 Parity error.<br />

5 Unknown hardware error.<br />

6 Other unspecified error.<br />

STATUS Function Return Values<br />

SETTAPE, T.ATT, T.DET – For information, see the UniData <strong>Commands</strong> <strong>Reference</strong>.<br />

WRITET 1-916

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

Saved successfully!

Ooh no, something went wrong!