Working with journals
You can work with journals using CL commands or iSeries™ Navigator functions. The following CL commands can be used to work with journals:
- To recover a damaged or unusable database file member that contains journaled changes, use the Apply Journaled Changes (APYJRNCHG) and Remove Journaled Changes (RMVJRNCHG) commands.
- To apply the changes that were recorded in a journal receiver to the designated physical file member, use the APYJRNCHG command. However, depending on the type of damage to the physical file and the amount of activity since the file was last saved, removing changes from the file using the RMVJRNCHG command can be easier.
- To convert journal entries to a database file, use the Display Journal (DSPJRN) command. Use this file for activity reports, audit trails, security, and program debugging.
- Creating a journal using iSeries Navigator
Creating a journal causes a new instance of a journal on your system. You must start journaling the table to a journal before it begins journaling information.
- Creating a journal receiver using iSeries Navigator
A journal receiver is a file that contains the information that a journal is recording. When you create a journal, the receiver is automatically created. However, if you want to manually swap receivers, first create a journal receiver.
- Values for new journals and journal receivers
The journal and journal receiver are created or changed with the values that you specify on the Advanced Journal Attributes or the Journal Properties window. If you do not specify any values, the journal and journal receiver are created with the default values.
- Adding a remote journal using iSeries Navigator
Remote journals allow you to replicate journal information to a separate system. A remote journal is associated with an existing journal. The journal on the source system can be either a local journal or another remote journal.
- Removing a remote journal using iSeries Navigator
Removing a remote journal disassociates it from the journal on the source system; it does not delete the journal or the journal receivers. You must deactivate a remote journal before you can remove it.
- Activating a remote journal using iSeries Navigator
After you add a remote journal, activate it.
- Deactivating a remote journal using iSeries Navigator
When you deactivate a remote journal, the collection of data is stopped.
- Displaying journal information for a table using iSeries Navigator
You can get journal information for a table from iSeries Navigator.
- Swapping journal receivers using iSeries Navigator
Swapping journal receivers replaces the current journal receiver with a new journal receiver that is automatically created and attached to the journal by the system. You can use two methods to swap receivers. The first method does not change the attributes of the new receiver; the second method does.
- Starting or stopping a journal for a table (file) using iSeries Navigator
After you create a journal, start it for a table (file). If you want to delete a journal, stop it.
Parent topic:
Managing journals
Related concepts
Journal management
Control language
Related reference
Apply Journaled Changes (APYJRNCHG) command
Removed Journaled Changes (RMVJRNCHG) command
Display Journal (DSPJRN) command