Standard heading fields for audit journal entries QJORDJE4 Record Format (*TYPE4)

This table lists all possible values for the fields that are common to all entry types when OUTFILFMT(*TYPE4) is specified on the DSPJRN command.

Table 1. Standard heading fields for audit journal entries. QJORDJE4 Record Format (*TYPE4)
Offset Field Format Description
1 Length of Entry Zoned(5,0) Total length of the journal entry including the entry length field.
6 Sequence Number Zoned(10,0) Applied to each journal entry. Initially set to 1 for each new or restored journal. Optionally, reset to 1 when a new receiver is attached.
16 Journal Code Char(1) Always T.
17 Entry Type Char(2) See Audit Journal (QAUDJRN) entry types for a list of entry types and descriptions.
19 Timestamp of Entry Char(26) Date and time that the entry was made in SAA timestamp format.
45 Name of Job Char(10) The name of the job that caused the entry to be generated.2
55 User Name Char(10) The user profile name associated with the job.1,2
65 Job Number Zoned(6,0) The job number.2
71 Program Name Char(10) The name of the program that made the journal entry. This can also be the name of a service program or the partial name of a class file used in a compiled Java™ program. If an application program or CL program did not cause the entry, the field contains the name of a system-supplied program such as QCMD. The field has the value *NONE if one of the following is true:
  • The program name does not apply to this entry type.
  • The program name was not available.
81 Object Name Char(10) Used for journaled objects. Not used for audit journal entries.
91 Library Name Char(10) Used for journaled objects. Not used for audit journal entries.
101 Member Name Char(10) Used for journaled objects. Not used for audit journal entries.
111 Count/RRN Zoned(10) Used for journaled objects. Not used for audit journal entries.
121 Flag Char(1) Used for journaled objects. Not used for audit journal entries.
122 Commit Cycle ID Zoned(10) Used for journaled objects. Not used for audit journal entries.
132 User Profile Char(10) The name of the current user profile1.
142 System Name Char(8) The name of the system.
150 Journal Identifier Char(10) Used for journaled objects. Not used for audit journal entries.
160 Referential Constraint Char(1) Used for journaled objects. Not used for audit journal entries.
161 Trigger Char(1) Used for journaled objects. Not used for audit journal entries.
162 (Reserved Area) Char(8)  
170 Null Value Indicators3 Char(52) Used for journaled objects. Not used for audit journal entries.
222 Entry Specific Data Length Binary (2) Length of the entry specific data.
1
The three fields beginning at offset 45 make up the system job name. In most cases, the User name field at offset 55 and the User profile name field at offset 132 have the same value. For prestarted jobs, the User profile name field contains the name of the user starting the transaction. For some jobs, both these fields contain QSYS as the user name. The User profile name field in the entry-specific data contains the actual user who caused the entry. If an API is used to exchange user profiles, the User profile name field contains the name of the new (swapped) user profile.
2
If the system job is running in a task rather than a process, the name of job and user name fields that begin at offset 45 contain up to a 16 character name for the LIC task. The remaining characters of the user name field that start at offset 61 are left blank. The job number field that begins at offset 65 is set to zeros.
3
This is a variable length field. The first 2 bytes contain the length of the null value indicators.