Using SAVCHGOBJ to save journal receivers
One technique for saving journal receivers is to use the Save Changed Object (SAVCHGOBJ) command. When you use the SAVCHGOBJ command to save journal receivers, ensure that you omit the attached journal receiver.
In the following example, all your journal receivers are in a library called RCVLIB. The currently attached journal receiver is MYJRCV0004.
SAVCHGOBJ OBJ(*ALL) OMITOBJ(MYJRCV0004) LIB(RCVLIB) OBJTYPE(*JRNRCV) DEV(media-device-name) ENDOPT(*LEAVE)This example saves all journal receivers that have any new entries since the entire library was saved but omits the currently attached journal receiver MYJRCV0004.
A possible disadvantage to using the SAVCHGOBJ command to save journal receivers is that you can accidentally save the journal receivers that are currently attached. Those journal receivers are saved as partial receivers. If you need to do a recovery, you may need to handle the error condition that occurs when you attempt to restore the partial receiver over the receiver that is currently on the system and has not yet been saved. Also, partial journal receivers make tasks such as displaying entries and performing apply and remove journaled changes operations more difficult. Therefore avoid saving attached journal receivers.
Read the Code example disclaimer for important legal information.
Parent topic:
Saving journals and journal receiversRelated concepts
Recovery of journaled objectsRelated reference
Save Changed Objects (SAVCHGOBJ) command