Start of change

Automatically Start Journaling

Using a data area named QDFTJRN, you can automatically start journaling when a non-integrated file system object (data area, data queue, or file) is created, moved, or restored into the library, thus, ensuring the very first change to the object will be recorded in the journal and that no lock on the user's part prevents journaling from starting in the library. The QDFTJRN data area must exist in the library where the object is being added.

Note:

Start of changeIf a data area called QDFTJRN exists 1) in the same library into which the data area, data queue, or physical file is created, or 2) in the same schema that the SQL table is created into, and 3) the user (in either instance) is authorized to the data area, journaling will be started to the journal named in the data area if all the following are true: End of change

Start of changeSee the table below for a detailed description of the values within the data area.End of change

Start of changeWhen creating SQL tables within a schema, the QSQJRN journal within the schema is used to start journaling the tables. To start journaling the tables to a different journal than QSQJRN within the schema, create the QDFTJRN data area in the schema and specify a different journal name inside the QDFTJRN data area.End of change

This table shows formats of the QDFTJRN data area.

Start of change
Offset Field Format Description
1 Library name Char (10) Name of the library that contains the journal.
11 Journal name Char (10) Name of the journal to use to automatically start journaling.
21 Repeat the set of Object type and Option as needed:
  Object type Char (10)

Object type value:

  • *FILE = database files or SQL tables
  • *DTAARA = data areas
  • *DTAQ = data queues
  • *ALL = all journal eligible objects which are not in an integrated file system
  • *NONE = no objects
  Option Char (10)

Option:

  • *CREATE = Start journaling when an object is created into the library
  • *MOVE = Start journaling when an object is moved into the library
  • *RESTORE = Start journaling when an object is restored into the library
  • *ALLOPR = Start journaling in all cases possible
End of change
Note: The values in the data area must be in upper case.
Related tasks
Journal integrated file system objects
End of change