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.

Return Value Description<br />

Example<br />

In the following example, the program statement writes the variable IDEA.57 to the<br />

file IDEAS as a record with the ID ‘LAST’. The lock remains in place if the record<br />

was locked before executing WRITEU.<br />

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

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

a value of 0 in the parameter execstat, indicating that the WRITEU is not<br />

allowed.<br />

3 Trigger execution error or unexpected return from trigger routine (for<br />

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

10 Non-RFS files – WRITEU created a duplicate alternate index key and<br />

ECL DUP.STATUS is ON; or WRITEU failed because a duplicate value<br />

exists in the index, and NO.DUPS was specified when the index was<br />

created.<br />

RFS files – WRITEU created a duplicate value in the index, and ECL<br />

DUP.STATUS is ON.<br />

WRITEU IDEA.57 ON IDEAS,'LAST'<br />

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

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

CLOSE, DELETE, OPEN, READL, READU, READV, READVL, READVU,<br />

WRITE, WRITEV, WRITEVU<br />

UniData<br />

STATUS Function Return Values<br />

DUP.STATUS – 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!