Viewing the journal entries through the output file
If you want to view the journal entries by having them formatted into one folder, see the MODEL.OUT file in the QUSRSYS directory. By copying the journal entries to the output file, you can easily view the entries by using query utilities such as Query/400 or Structured Query Language (SQL). You can also write your own high-level language (HLL) programs to process the entries in the output files.
To copy the quality of service (QoS) journal entries to the system-supplied output file, follow these steps:
- Create a copy of the system-supplied output file QSYS/QATOQQOS into a user library. You can do this by using the Create Duplicate Object (CRTDUPOBJ) command. The following string is an example of the CRTDUPOBJ command:
- CRTDUPOBJ OBJ(QADSPJR4) FROMLIB(Qsys) OBJTYPE(*FILE) TOLIB(userlib)
NEWOBj(userfile)
- Use the Display Journal (DSPJRN) command to copy the entries from the QUSRSYS/QQOS journal to the output file created in the previous step.
If you attempt to copy the DSPJRN into an output file that does not exist,
the system creates a file for you, but this file does not contain the correct field descriptions.
- DSPJRN JRN(QUSRSYS/QQOS) JRNCDE((M)) ENTTYP(MP) CMTCYCID(*ALL) OUTPUT(*OUTFILE)
OUTFILFMT(*TYPE4) OUTFILE(userlib/userfile)
- DSPF FILE(userlib/userfile)
Parent topic:
Journaling QoS policies