Saving journals and journal receivers
This information describes the commands that you should use to save journals and journal receivers. It also contains some special considerations for you to keep in mind when using these commands.
Use the SAVOBJ, SAVCHGOBJ, SAV, or SAVLIB command to save journals and journal receivers that are in user libraries. Use the SAVSYS command to save the journals and journal receivers that are in the QSYS library.
You can save a journal or journal receiver even when you journal objects to it. The save operation always starts at the beginning of the journal receiver. If you save a journal receiver that is currently attached, you receive a diagnostic message.
If you specified MNGRCV(*USER) for a journal on the CRTJRN command or the CHGJRN command, save the detached receiver immediately after running the CHGJRN command.
If you specified MNGRCV(*SYSTEM), do one of the following:
- Set up a regular procedure for saving detached receivers. Use this procedure to determine which detached journal receivers that you need to save:
- Type WRKJRNA JRN(library-name/journal-name)
- On the Work with Journal Attributes display, press F15 (Work with receiver directory).
- Create a program to monitor for message CPF7020 in the journal's message queue. This saving sends this message when you detach the receiver. Save the receiver that the message identifies.
Parent topic:
Saving user data in your systemRelated information
Journal management