Working with journal entry information

 

This topic provides ways that you can display, retrieve, and receive journal entries.

Every journal entry is stored internally in a compressed format and must be converted by the operating system to an external form before it can be shown to the user. You cannot change or access the journal entries directly. Not even the security officer can remove or change journal entries in a journal receiver.

You can use these journal entries to help you recover your objects or analyze changes that were made to the objects.

Following are the various ways that you can retrieve, display, and print journal entry information:

Read the Code example disclaimer for important legal information.

  • Displaying and printing journal entries
    You can use the Display Journal (DSPJRN) command to display journal entries. The entries are displayed at a work station, printed, or written to an output file. You cannot directly access the journal entries in the form in which they are contained in the journal receivers.

  • Receiving journal entries in an exit program
    You can write a program to receive journal entries as they are written to the journal receiver.

  • Retrieving journal entries in a program
    Use the Retrieve Journal Entry (RTVJRNE) command or the Retrieve Journal Entries (QjoRetrieveJournalEntries) API in a program to retrieve a journal entry and place it in a variable in the program.

  • Working with pointers in journal entries
    Under certain conditions, not all of the journal entry data will be immediately retrievable from a journal entry. Instead, part of the journal entry information will include pointers to additional journal entry-specific data.

  • Replaying a database operation from a single journal entry
    Use the Replay Database Operation (QDBRPLAY) API to replay a database operation from a single journal entry. You can only use the QDBRPLAY API to replay journal entries for database file objects. Also, the API does not run under commitment control even if the original journal entry was performed as part of a committable transaction.

  • Considerations for entries which contain minimized entry-specific data
    Reduce the size of journal receivers by specifying minimized entry-specific data on the Create Journal (CRTJRN) and Change Journal (CHGJRN) commands.

 

Parent topic:

Journal entry information

Related concepts
Getting information about remote journal entries