Caller data written by file control
The file log and journal block (FLJB) describes the caller data that file control writes as part of its journal records. The copybook DFHFCLGD defines the FLJB DSECT.
There are two sections in the FLJB: the first section contains data that is applicable to all journal records written by file control; the second section contains information specific to the record type. Both sections are of fixed length.
Some records have a third and fourth section which are of variable length.
Table 1 outlines the sections in a journal record written by file control.
| Record type | First section | Second section | Third section | Fourth section |
|---|---|---|---|---|
| Read-only, read-update, write-update, write-add, write-add complete record types | FLJB_GENERAL_ DATA | FLJB_COMMON_DATA | FLJB_CD_KEY | FLJB_CD_DATA |
| Write-delete record types | FLJB_GENERAL_ DATA | FLJB_WRITE_DELETE _DATA | FLJB_WDD_BASE _KEY | FLJB_WDD_PATH _KEY |
| Commit and backout record types | FLJB_GENERAL _DATA | None | None | None |
| Unlock record types | FLJB_GENERAL_ DATA | FLJB_UNLOCK_ DATA | FLJB_UND_BASE _KEY | FLJB_UND_PATH_KEY |
| File-close record types | FLJB_GENERAL_ DATA | FLJB_FILE_CLOSE _DATA | None | None |
| Tie-up record types | FLJB_GENERAL_ DATA | FLJB_TIE_UP_RECORD _DATA | None | None |