KI_SET_WLOCK_COUNT

Reset the table usage count

Synopsis:
CALL KI_SET_WLOCK_COUNT handle, count TO oldCount, status
status = 'ki_set_wlock_count( handle, count )
ArgumentEnumerationPurpose
handleHandle
countNew value for count
oldCountPrevious value
statusKDB_ERROR_ENUMReturn status
>KI_SET_WLOCK_COUNT

KI_SET_WLOCK_COUNT

This function allows a program to reset the mode 'W' user count for a table to the value supplied in count. The previous value is returned in oldCount. If the new value is negative then the count is not affected as the call just queries the current value. If you attempt to set the count to zero then it will be set to 1 as you must have the table open at least in mode 'W' to issue this call.

See also KI_WMODE_BITMAP

History
Introduced in KCML 5.02
See Also:
KI_COPY_TABLE, KI_CREATE, KI_CREATE_TMP, KI_DELETE_ROWS, KI_DESCRIBE_KEY, KI_DESCRIBE_SCHEMA, KI_EXTEND, KI_GET_COL_LIST, KI_GET_SERIAL, KI_GROW, KI_INFO, KI_INITIALISE, KI_LOCK_ALL, KI_LOCK_OWNER, KI_MOVE_ROWS, KI_MOVE_TABLE, KI_OPEN, KI_READ, KI_READ_HOLD, KI_READ_HOLD_NEXT, KI_READ_HOLD_PTR, KI_READ_NEXT, KI_READ_PTR, KI_READ_RAW, KI_REBUILD, KI_REWRITE, KI_SET_EXTENT, KI_SET_ROWS, KI_SET_SERIAL, KI_SIZE_FILE, KI_START, KI_START_BEG, KI_UNLOCK, KI_UNLOCK_FILE, KI_VERIFY, KI_WMODE_BITMAP, KI_WRITE, KI_WRITE_PTR, KI_WRITE_RAW, KI_WS_CREATE, KI_WS_DELETE, KI_WS_OPEN, KI_WS_READ, KI_WS_REWRITE, KI_WS_WRITE
KCML database status codes