Journaled changes with trigger programs
The system does not call trigger programs when it is applying or removing journal entries.
If an event occurs that would normally cause a trigger program to run, it is up to you to ensure that the processing performed by the trigger program is recovered correctly.
Normal recovery processing will work correctly if all of the following are true:
- The trigger program only performs processing on object types which can be journaled and applied.
- The processed object types are journaled.
- Journaled changes are applied to or are removed from all the objects that are affected by the trigger program.
If additional work is performed by the trigger program or objects other than object types which can be journaled and applied are updated, use user-written programs to recover the work performed by the trigger program.
If you use trigger programs to perform these actions, consider using the Send Journal Entry (QJOSJRNE) API to send journal entries when trigger programs are called. To help with recovery, you can develop a program to retrieve these entries and perform the same operations.
The output format for journal entries (except the *TYPE1, *TYPE2, and *TYPE3 formats) and the QjoRetrieveJournalEntries API interface include information about whether a journal entry was created because of actions that were performed when a trigger program was called.
Parent topic:
Recovery of journaled objectsRelated concepts
Sending your own journal entries