IBM Support

DSPOBJD does not show save date information for QAUDJRN journal receivers in QSYS

Question & Answer


Question

I have a program that deletes journal receivers based on DSPOBJD save date (ODSDAT or Save date) but have one where the *JRNRCVs do not have that data filled in but WRKJRNA does show a save date.    Therefore my program is not deleting the *JRNRCVs even though they have been saved.

Cause

This is correct if the *JRNRCVs are in QSYS and your save is a SAVSYS.

Answer

SAVSYS does not the Update history (UPDHST) parameter.

The save date and time are only updated when UPDHST(*YES) is specified when a save command is run.
So objects in QSYS library will not have save history info if they were saved with SAVSYS command.

Per the Security reference when setting up QAUDJRN the *JRNRCVs should not be created in QSYS:

Place the journal receiver in a library that is saved regularly. Do not place the journal receiver in library QSYS, even though that is where the journal will be. 

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CGIAA2","label":"IBM i Db2-\u003EJournal"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Document Information

Modified date:
27 April 2023

UID

ibm16986645