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.

SUBROUTINE (Update<br />

Trigger)<br />

SUBROUTINE (Delete<br />

Trigger)<br />

TRANSACTION<br />

COMMIT<br />

TRANSACTION<br />

START<br />

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

Command or<br />

Function STATUS() Return Values<br />

0 – No error.<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 update or delete is not allowed.<br />

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

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

0 – No error.<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 update or delete is not allowed.<br />

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

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

0 – The commit completed successfully.<br />

1 – Transaction not started.<br />

3 – Transaction cannot commit.<br />

0 – The transaction was started.<br />

1 – The transaction was not started.<br />

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

<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!