KI_LOCK_ALL

Lock/Unlock all the rows of a table

Synopsis:
CALL KI_LOCK_ALL handle, bToggle TO part_number
part_number = 'ki_lock_all( handle, bToggle )
ArgumentEnumerationPurpose
handleHandle
bToggleTRUE for lock, FALSE for unlock
part_numberPartition number that caused the function to fail
>KI_LOCK_ALL

KI_LOCK_ALL

This will attempt to lock or unlock all the rows of a table in one operation. The toggle parameter is TRUE to lock and FALSE to unlock. If the call fails with error code KE_LOCKED the KI_LOCK_OWNER can be used on Unix systems to see the first KCML process whose own lock prevented the call succeeding.

History
Introduced in KCML 5.02
See Also:
KI_CLOSE, KI_CLOSE_TABLE, KI_COPY_TABLE, KI_CREATE, KI_CREATE_TMP, KI_DB_NAME, KI_DELETE_ROWS, KI_DROP_TABLE, KI_EXTEND, KI_GET_HANDLE, KI_GET_SERIAL, KI_GROW, KI_INFO, KI_INITIALISE, KI_LOCK_OWNER, KI_MOVE_ROWS, KI_MOVE_TABLE, KI_OPEN, KI_PREFETCH_ROWS, 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_RESET_CACHEID, KI_REWRITE, KI_SET_DATESTAMP, KI_SET_EXTENT, KI_SET_ROWS, KI_SET_SERIAL, KI_SET_TIMESTAMP, KI_SET_USERSTAMP, KI_SET_WLOCK_COUNT, 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