11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

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

index.name.expr Specifies the alternate key index to use in subsequent<br />

READFWD/READBCK statements.<br />

rop One of several valid operators (see the following table). The default<br />

rop operator is EQ.<br />

, key.val.expr Specifies the key value to initialize. If you do not specify this value,<br />

UniData sets the internal pointer to the first key value in the index.<br />

If you specify FIRST_ALT_KEY, LAST_ALT_KEY, or<br />

NULLVAL_ALT_KEY as rop, you cannot specify key.val.expr.<br />

, id.expr Specifies the @ID associated with the key value to position the<br />

pointer in the index.<br />

When the id.expr entered does not exist, SETINDEX sets the<br />

position to the key value following the expected location of id.expr.<br />

ON file.var Specifies the file to act on.<br />

BUFFER.KEYS<br />

ON | OFF<br />

VALIDATE.KEY<br />

ON | OFF<br />

Directs READFWD/READBCK to use or not use a buffering<br />

mechanism.<br />

ON improves performance, but you could miss some newly added<br />

key values.<br />

OFF (the default) slows performance, but you will not miss any key<br />

values added after the one you just read.<br />

Directs READFWD/READBCK to validate or not validate the key<br />

value just read against what is in the tuple. Because reading a key<br />

value and its tuple is not an atomic action, a tuple could be deleted<br />

after it is read. ON prevents this, but could degrade performance.<br />

SETINDEX Parameters

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

Saved successfully!

Ooh no, something went wrong!