Task 7: Replaying journaled changes in a disaster recovery

If an object becomes damaged or is not usable, you can recover the object using the Apply Journaled Changes (APYJRNCHG) command. You also can replay changes to libraries by using the APYJRNCHG command in a disaster recovery situation.

If you restore an object that was saved with partial transactions, then you must apply journaled changes to that object before it is usable. You can apply journaled changes to all objects that are journaled to the journal by specifying OBJ(*ALLJRNOBJ) on the APYJRNCHG command.

To replay journaled changes in a disaster recovery situation, perform the following steps:

  1. Use the Display Object Description (DSPOBJD) command to determine the earliest journal receiver that needs to be on the system to recover the objects.
  2. After the journal, journal receivers, and journaled objects have all been restored, issue the APYJRNCHG command to apply the journaled changes to all the objects, as the following example shows:
    APYJRNCHG JRN(JRN2) OBJ(*ALLJRNOBJ)
    FROMENTLRG(*LASTSAVE) TOENTLRG(*LAST)
    RCVRNG(*LASTSAVE)