Read-only, read-update, write-update, write-add, write-add complete record types
There are four sections in the journal records written for read-only,
read-update, write-update, write-add, and write-add complete record types:
- The FLJB_GENERAL_DATA section,
- The FLJB_COMMON_DATA section, and
- The caller data image sections which consist of the FLJB_CD_KEY (the length of which is given in FLJB_COMMON_DATA) and the FLJB_CD_DATA section. The FLJB_CD_DATA section (the length of which is given in FLJB_COMMON_DATA) contains the image of the caller data.
Figure 1. Layout
of record written for read-only, read-update, write-update, write-add, and
write-add-complete record types

- FLJB_GENERAL_DATA
- 12-byte general data.
- FLJB_COMMON_DATA
- 16-byte common data.
- FLJB_CD_KEY
- Variable-length caller data key.
- FLJB_CD_DATA
- Variable-length caller data.
The format of the FLJB_GENERAL_DATA section is
shown in Figure 2.
Figure 2. Format of FLJB_GENERAL_DATA section

- FLJB_RECORD_TYPE
- 1-byte record type:
X'80' Readonly X'81' Read update X'82' Write update X'83' Write add X'84' Write add complete X'86' Write delete X'8E' File close X'8F' File tie-up record - FLJB_BITS
- 1-byte flag field:
X'80' File control autojournal record X'40' Forward recovery log record X'20' System log record X'10' Log-of-log record X'08' Written in backout X'04' Data set is extended addressing ESDS - FLJB_FILE_NAME
- 8-byte file name.
- Reserved
- 2-byte reserved field.
The format of the FLJB_COMMON_DATA section is shown
in Figure 3.
Figure 3. Format
of FLJB_COMMON_DATA section

- FLJB_CD_BASE_ESDS_RBA
- 4-byte relative byte address of record in base data set for ESDS (0 if file does not refer to ESDS, or if is an extended addressing ESDS).
- FLJB_CD_KEY_LENGTH
- 2-byte length of user data key. (The key length is 4 for an RRDS, a VRRDS, or a standard ESDS; 8 for an extended addressing ESDS.)
- Reserved
- 2-byte reserved field.
- FLJB_CD_DATA_LENGTH
- 4-byte length of user data.
- FLJB_CD_BITS
- 1-byte flag field:
Combinations of settings are possible.X'80' UOW has been shunted at least once X'40' Write massinsert X'20' First write-add-complete in massinsert sequence X'10' End of massinsert sequence X'8' Fixed length record - Reserved
- 3-byte reserved field.