UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

GETREADU Syntax GETREADU() Description The UniBasic GETREADU function returns a dynamic array containing information about all records that have been locked by any UniBasic or ECL command that updates any record. This command delivers the same information as the ECL command LIST.READU, but in a different format. A value mark separates these pieces of information. An attribute mark separates the information about different locks. If GETREADU is successful, UniData sets @SYSTEM.RETURN.CODE to the number of locks set. If unsuccessful, UniData sets @SYSTEM.RETURN.CODE to -1. Note: UniBasic locks are advisory only. For more information, see the Developing UniBasic Applications. GETREADU Function Return Values 1-304 UniBasic Commands Reference

The GETREADU function returns the values described in the following table. Value Description UDTNO The number of the UniData process that locked the file. USERNBR The ID of the process that ran the UniData application that locked the file. UID The user ID of the user who ran the UniData application that locked the file. USERNAME The user name of the user who ran the UniData application that locked the file. TTY The terminal ID of the user who ran the UniData application that locked the file. FILE NAME The name of the locked file. INBR The i-node number used by the locked file. For Windows platforms, this value consists of the high integer and low integer of the inode used by the locked file. The high integer and the low integer are separated by a space. DNBR The device number used by the locked file. RECORD ID The ID of the record in the file that is being updated. MODE The mode of the command that locked the file. TIME The time the lock was set. DATE The date the lock was set. GETREADU Function Return Values 1-305

GETREADU<br />

Syntax<br />

GETREADU()<br />

Description<br />

The <strong>UniBasic</strong> GETREADU function returns a dynamic array containing information<br />

about all records that have been locked by any <strong>UniBasic</strong> or ECL command<br />

that updates any record.<br />

This command delivers the same information as the ECL command LIST.READU,<br />

but in a different format. A value mark separates these pieces of information. An<br />

attribute mark separates the information about different locks.<br />

If GETREADU is successful, UniData sets @SYSTEM.RETURN.CODE to the<br />

number of locks set. If unsuccessful, UniData sets @SYSTEM.RETURN.CODE to<br />

-1.<br />

Note: <strong>UniBasic</strong> locks are advisory only. For more information, see the Developing<br />

<strong>UniBasic</strong> Applications.<br />

GETREADU Function Return Values<br />

1-304 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!