UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
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
- Page 292 and 293: Code 9 Merge factor percentage 10 S
- Page 294 and 295: FILELOCK Syntax FILELOCK [file.var]
- Page 296 and 297: FILEUNLOCK Syntax FILEUNLOCK [file.
- Page 298 and 299: FIND Syntax FIND expr IN dyn.array[
- Page 300 and 301: Related Commands UniBasic [], FINDS
- Page 302 and 303: Parameter Description Examples In t
- Page 304 and 305: FMT Syntax FMT(expr, "len [f.char]
- Page 306 and 307: STATUS Function Return Values After
- Page 308 and 309: FOOTING Syntax FOOTING [ON num.expr
- Page 310 and 311: Related Commands UniBasic GETPTR, H
- Page 312 and 313: This program segment produces the f
- Page 314 and 315: Parameter Description Examples The
- Page 316 and 317: FUNCTION Syntax FUNCTION function.n
- Page 318 and 319: The following program calls the pre
- Page 320 and 321: GE Syntax expr1 GE expr2 Synonyms #
- Page 322 and 323: generateKey Syntax generateKey(priv
- Page 324 and 325: Return Code Status 1-286 UniBasic C
- Page 326 and 327: GET Syntax GET[X] var[,length] [SET
- Page 328 and 329: Example In the following example, t
- Page 330 and 331: Parameters The following table desc
- Page 332 and 333: getHTTPDefault Syntax getHTTPDefaul
- Page 334 and 335: GETLIST Syntax GETLIST list.name [,
- Page 336 and 337: UniData SQL SELECT - For informatio
- Page 338 and 339: STATUS Function Return Values After
- Page 340 and 341: GETQUEUE Syntax GETQUEUE() Descript
- Page 344 and 345: getResponseHeader Syntax getRespons
- Page 346 and 347: The following table describes each
- Page 348 and 349: Parameters The following table desc
- Page 350 and 351: GETUSERGROUP Syntax GETUSERGROUP(ui
- Page 352 and 353: GETUSERNAME Syntax GETUSERNAME(uid)
- Page 354 and 355: 1-316 UniBasic Commands Reference
- Page 356 and 357: Related Commands UniBasic GOSUB, ON
- Page 358 and 359: Examples In the following example,
- Page 360 and 361: Parameter Description The replace.n
- Page 362 and 363: This next example compiles and runs
- Page 364 and 365: Related Command UniBasic GTS 1-326
- Page 366 and 367: HASH Syntax HASH(rec.key,modulo,typ
- Page 368 and 369: Parameters The following table desc
- Page 370 and 371: HUSH Syntax HUSH {ON | OFF | expr}
- Page 372 and 373: ICONV Syntax ICONV(expr,conv.code.e
- Page 374 and 375: STATUS Function Return Values After
- Page 376 and 377: 1-337 UniBasic Commands Reference
- Page 378 and 379: The following table describes vario
- Page 380 and 381: Related Command UniBasic OCONV Grou
- Page 382 and 383: Example In the following example, t
- Page 384 and 385: Parameters Description Example You
- Page 386 and 387: Parameter Description Examples In t
- Page 388 and 389: Parameter Description Example In th
- Page 390 and 391: ICONV Packed Decimal (MP1) Syntax I
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>