Start of change

Recover a damaged journal

If a journal becomes damaged, the system sends message CPF8135 to the system operator and to the job log.

You can use the Work with Journals (WRKJRN) command to recover a damaged journal, or you can perform the following steps:
  1. End journaling for all access paths associated with the journal by using the End Journal Access Path (ENDJRNAP) command.
  2. End journaling for all physical files associated with the journal by using the End Journal Physical File (ENDJRNPF) command.
  3. End journaling for all integrated file system objects by using the End Journal (ENDJRN) command.
  4. End journaling for all other object types by using the End Journal Object (ENDJRNOBJ) command.
  5. Delete the damaged journal by using the Delete Journal (DLTJRN) command.
  6. Start of changeCreate a journal receiver (CRTJRNRCV command) and create a journal (CRTJRN command) with the same name and in the same library as the damaged journal, or restore the journal from a previously saved version.End of change
    Note: Start of changeIf you have remote journals associated with this journal, it is suggested that you restore a previously saved version of the journal rather than creating the journal.End of change
  7. Start journaling the physical files that were journaled by using the Start Journal Physical File (STRJRNPF) command.
  8. Start journaling the access paths that were journaled by using the Start Journal Access Path (STRJRNAP) command.
  9. Start journaling integrated file system objects with the Start Journal (STRJRN) command.
  10. Start journaling other new object types with the Start Journal Object (STRJRNOBJ) command.
    Note: You can also restore your journaling environment by deleting and restoring all the objects that were being journaled. Objects that were journaled at the time of their save automatically begin journaling at restore time if the journal is online.
  11. Save the journaled objects to allow for later recovery.
  12. Associate the old journal receivers with the new journal. Do the following:
    1. Type WRKJRN and press the Enter key.
    2. On the prompt display, enter the name of the journal.
    3. From the Work with Journals display, select option 9 (Associate receivers).
    4. Press F12 to cancel the display.
    5. Type WRKJRNA JRN(library-name/journal-name) and press the Enter key.
    6. From the Work with Journal Attributes display, press F15 to display the receiver directory.
    7. A new panel now gets displayed after selecting option 9. This new panel is called "Specify Journal Receivers". Fill in *ALL for journal receiver name and put in the specific library name that the receivers are located in. This is faster than searching the entire system looking at all receivers.
    8. After receivers are attached, then Press F12 to cancel out of the "Work with Journals" display.

Each time a journal is restored, a new receiver chain is started because the last journal receiver in the chain that existed prior to the restore process did not have the newly created receivers as its next receivers.

Note: Start of changeIf the damaged journal had any remote journals associated with it and a previously saved version of the journal was not restored, use the Add Remote Journal (QjoAddRemoteJournal) API or Add Remote Journal (ADDRMTJRN) command to reassociate those remote journals. See the Add remote journals link below for more information.End of change
Related tasks
Recovery for journal management after abnormal system end
Add remote journals
End of change