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.

STATUS Function Return Values<br />

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

in the following table.<br />

Example<br />

In the following example, the program statement writes an end-of-file mark to tape<br />

0. If unable to write the end-of-file mark, UniData executes the ELSE clause.<br />

1-899 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

WEOF UNIT(00) ELSE "Unable to write an end-of-file"<br />

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

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

READT, RESIZET, REWIND, WRITET<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>.

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

Saved successfully!

Ooh no, something went wrong!