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:
- End journaling for all access paths associated with the journal
by using the End Journal Access Path (ENDJRNAP) command.
- End journaling for all physical files associated with the journal
by using the End Journal Physical File (ENDJRNPF) command.
- End journaling for all integrated file system objects by using
the End Journal (ENDJRN) command.
- End journaling for all other object types by using the End Journal
Object (ENDJRNOBJ) command.
- Delete the damaged journal by using the Delete Journal (DLTJRN)
command.
- Create 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.
Note: If 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.
- Start journaling the physical files that were journaled by using
the Start Journal Physical File (STRJRNPF) command.
- Start journaling the access paths that were journaled by using
the Start Journal Access Path (STRJRNAP) command.
- Start journaling integrated file system objects with the Start
Journal (STRJRN) command.
- 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.
- Save the journaled objects to allow for later recovery.
- Associate the old journal receivers with the new journal. Do the
following:
- Type WRKJRN and press the Enter key.
- On the prompt display, enter the name of the journal.
- From the Work with Journals display, select option 9 (Associate
receivers).
- Press F12 to cancel the display.
- Type WRKJRNA JRN(library-name/journal-name) and
press the Enter key.
- From the Work with Journal Attributes display, press F15 to
display the receiver directory.
- 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.
- 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: If 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.