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.

F-8 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

Command or<br />

Function STATUS() Return Values<br />

WRITEU 0 – Successful write.<br />

1 – System error, such as a damaged file.<br />

2 – Constraint violation. In this case, the <strong>UniBasic</strong> trigger<br />

subroutine returns a value of 0 in the parameter execstat,<br />

indicating that the WRITEU is not allowed.<br />

3 – Trigger execution error or unexpected return from trigger<br />

routine (for example, trigger subroutine is not cataloged).<br />

10 – Non-RFS files: WRITEU created a duplicate alternate<br />

index key and ECL DUP.STATUS is ON; or WRITEU failed<br />

because a duplicate value exists in the index, and NO.DUPS was<br />

specified when the index was created. RFS files: WRITEU<br />

created a duplicate value in the index, and ECL DUP.STATUS is<br />

ON.<br />

WRITEV 0 – Successful write.<br />

1 – System error, such as a damaged file.<br />

2 – Constraint violation. In this case, the <strong>UniBasic</strong> trigger<br />

subroutine returns a value of 0 in the parameter execstat,<br />

indicating that the WRITEV is not allowed.<br />

3 – Trigger execution error or unexpected return from trigger<br />

routine (for example, trigger subroutine is not cataloged).<br />

10 – Non-RFS files: WRITEV created a duplicate alternate<br />

index key and ECL DUP.STATUS is on; or WRITEV failed<br />

because a duplicate value exists in the index and NO.DUPS was<br />

specified when the index was created. RFS files: WRITEV<br />

created a duplicate value in the index, and ECL DUP.STATUS is<br />

on.<br />

<strong>Commands</strong> and Functions That Set STATUS() Return Values (continued)

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

Saved successfully!

Ooh no, something went wrong!