Automatically starting journaling

You can automatically journal objects created into libraries or directories.

  • Objects created in, moved into, or restored into a journaled library will automatically start journaling. To start library journaling, see Journaling libraries.
  • To automatically start journaling for integrated file system objects, see the discussion of journal inheritance in Journaling integrated file system objects.

Restore impacts for library-based objects

Library journaling provides more options for journaling during the restore operation. When using the *RESTORE keyword on the Start journal library STRJRNLIB INHRULES parameter, even if an object was not journaled at save time, the operating system automatically records the restore operation to the journal the library is journaled to. However, if the object was journaled at save time and that journal still exists on the system, the library's journal are ignored. In this case, the operating system still records the restore operation to the journal used at save time.

You can use the *RSTOVRJRN keyword on the Start journal library STRJRNLIB INHRULES parameter to override the journal used at save time. After you specify the *RSTOVRJRN keyword, the operating system always records the restore operation to the library's journal. In this case, any journal used at save time is ignored.

If the object being restored still exists on the system, the *RSTOVRJRN keyword is ignored during the restore operation.

If you changed the journal of your object using the *RSTOVRJRN keyword, save your object as soon as possible to enable future recovery operations with the Apply Journaled Changes (APYJRNCHG), Apply Journaled Changes Extend (APYJRNCHGX), and Remove Journaled Changes (RMVJRNCHG) commands. The save operation records the journal receiver and the new journal as the journal receiver and journal to use for recovering your object from the point of its last save. The save operation also updates the last saved date of your object, if UPDHST(*YES) is specified on the save command.

See the Start Journal Library (STRJRNLIB) command for more information on using the *RSTOVRJRN keyword with library journaling.