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 OSDELETE, the STATUS function returns one of the values<br />

described in the following table.<br />

Examples<br />

In the following example, the program statement deletes the file NAMES in the<br />

current directory:<br />

OSDELETE "NAMES"<br />

In the next example, the program statement deletes the file client.rec in the UNIX<br />

subdirectory /u/trans:<br />

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

OSDELETE '/u/trans/client.rec'<br />

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

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

Value Description<br />

0 The file was deleted.<br />

1 The directory name is invalid.<br />

2 UniData cannot access the file (such as user<br />

does not have permission).<br />

4 The file does not exist.<br />

STATUS Function Return Values<br />

CLOSESEQ, DELETE, OPENSEQ, OSOPEN, OSCLOSE

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

Saved successfully!

Ooh no, something went wrong!