Manually extracting journal entries for IBM i

You can run the DSPJRN command to extract journal entries for IBM i when an audit journal receiver chain is broken.

About this task

Run the ALJIB/DATETIME command to set the Start Date to *OUTF. This command forces the processing program to use the pre-built QTEMP/AUDITJRN outfile for parsing, instead of using the date time to extract journal entries. After you run the parsing program command AJLIB/AUDITJRN, the DATETIME is set to the new processing date.

Procedure

  1. Log in to your IBM i system command-line interface (CLI).
  2. Run DSPJRN.

    The only changeable parameters in the following example are RCVRNG and ENTTYP. Do not change any other command parameters. Ensure that ENTTP matches the AJLIB/SETENTTYP command settings.

    DSPJRN JRN(QSYS/QAUDJRN) RCVRNG(AUDRCV0001 AUDRCV0003)
    JRNCDE((T)) ENTTYP(*ALL)
    OUTPUT(*OUTFILE) OUTFILFMT(*TYPE5) OUTFILE(QTEMP/AUDITJRN)
    ENTDTALEN(*VARLEN 16000 100)
  3. To set the Date Time to use outfile *OUTF support, run the AJLIB/DATETIME command.
    Figure 1. DSPJRN Start and End Times
    DSPJRN Start and End Times
  4. Run AJLIB/AUDITJRN.

Results

The DATETIME is set to the next start date.