Unlock record types

The journal records written for unlock are written for replication logging only and consist of four sections.

These sections are as follows:
  • The FLJB_GENERAL_DATA section
  • The FLJB_UNLOCK_DATA section
  • The two caller data image sections:
    • FLJB_UND_BASE_KEY (its length is given by FLJB_UND_BASE_KEY_LENGTH in FLJB_UNLOCK_DELETE_DATA)
    • FLJB_UND_PATH_KEY (its length is given by FLJB_UND_PATH_KEY_LENGTH in FLJB_UNLOCK_DATA)

    These sections contain the image of the caller data as the base key, and, if the data set is a path, the path.

Record format for an unlock record

The format of a record written for unlock record types is shown in Figure 1.
Figure 1. Layout of record written for unlock record types
The fields in this picture are described in the list that follows.
FLJB_GENERAL_DATA
12-byte general data section.

See FLJB_GENERAL_DATA.

FLJB_UNLOCK_DATA
12-byte unlock data section.

See FLJB_UNLOCK_DATA.

FLJB_UND_BASE_KEY
Variable-length base key.
FLJB_UND_PATH_KEY
Variable-length path key.

FLJB_UNLOCK_DATA

The format of the FLJB_UNLOCK_DATA section is shown in Figure 2.
Figure 2. Format of the FLJB_UNLOCK_DATA section
The fields in this picture are described in the list that follows.
FLJB_UND_BASE_ESDS_RBA
4-byte relative byte address of record in the base data set for an ESDS.

The relative byte address is 0 if the file does not refer to an ESDS, or if it is an extended addressing ESDS.

FLJB_UND_BASE_KEY_LENGTH
2-byte base key length.

The key length is 4 for an RRDS, a VRRDS, or a standard ESDS; it is 8 for an extended addressing ESDS.

FLJB_UND_PATH_KEY_LENGTH
2-byte path key length.

The key length is 0 if the file does not refer to a path.

FLJB_UND_BITS
1-byte flag field:
X'80'    UOW has been shunted at least once
X'40'    Fixed-length record
X'20'    Replication record is auto committed
X'10'    Unlock follows a read-update
X'08'    Unlock follows a massinsert
Reserved
3-byte reserved field.