IBM Support

How to restore (RSTOBJ) QAUDJRN journal receivers if the *JRNRCV objects are in the QSYS library.

Question & Answer


Question

How do you restore (RSTOBJ) QAUDJRN journal receivers if the *JRNRCV objects are in the QSYS library ??

Cause

The QSYS library was used when the first *JRNRCV object was created for use by the QAUDJRN journal when using the CRTJRNRCV command or the CHGSECAUD command or SECTOOLS menu using Option 10. The recommendation is to use QGPL or another user library instead of QSYS .. because the QSYS library is not saved and restored in the same manner as QGPL. The QSYS library is saved by the SAVSYS command into 40 sequences on tape media.

Answer

To restore objects from these sequences ... you need to know which SEQ holds the objects and the LABEL name assigned to that sequence. For a tape made from a SAVSYS at V7Rx, the *JRNRCV objects are in SEQ 34 and the LABEL parm for V7Rx is LABEL(Q5770SS1710240090)

These object can be restored with the command RSTOBJ OBJ(*ALL) SAVLIB(QSYS) DEV(TAPxx) OBJTYPE(*JRNRCV) VOL(xxxxxx) SEQNBR(34) + LABEL(Q5770SS1710240090) to restore a specific journal receiver ... specify that object name in the OBJ parm.

If you need to know the name of a *JRNRCV or if you need to check if the journal receiver objects are on the tape media ... use the following command to create a spool file of this sequence 34 on the tape and check if the object exists on the media and the specific name:


DSPTAP DEV(TAPxx) VOL(xxxxxx) SEQNBR(34 34) DATA(*SAVRST) OUTPUT(*PRINT)
Check the created spool file for the journal receiver objects.

If the journal receivers are in QGPL or a different user library .. then simply use the RSTOBJ command to restore that specific object or objects from that library.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]

Document Information

Modified date:
18 December 2019

UID

nas8N1022002