A database structure has been deleted via an OBSOLETE function. When trying to re-create the database structure via BTG cards, the DDUPDATE job fails due to several
DDPVK30001 KEY RECORD NOT FOUND errors while trying to re-add the KEY . For example:
*-----------------------------
* CODE ENTITY-TYPE,OCCURRENCE(VERS,
* -BTG KEY,DIR_DATABASE.KEY(T001) ; PROC *
*-----------------------------
**** ERROR **** RETURN CODE = DDPVK30001 KEY RECORD NOT FOUND
KEY 00
z/OS
DATACOM DATADICTIONARY 15.1
The OBSOLETE failed to delete the KEY occurrences that get the DDPVK30001 error.
A query like the following one returns these KEY records (DIR_DATABASE.KEY in this case), even if the table (DIR_DATABASE in this case) no longer exists.
SELECT ENTITY_NAME, RECORD_NAME, ENTITY_VER
FROM SYSADM.KEY
WHERE (STATUS > 'H') AND
(RECORD_NAME LIKE 'DIR_DATABASE%')
ORDER BY KEY.RECORD_NAME;
-USR DATACOM-INSTALL,NEWUSER
-RPT ORPHANS,SUPPORT
-END
-RPT ORPHANS,AGGREGATE
-END
-USR DATACOM-INSTALL,NEWUSER
-RPT ORPHANS,SUPPORT,DELETE
-END
-RPT ORPHANS,AGGREGATE,DELETE
-END
Details about ORPHANS report can be found on the Listing/Deleting Orphans section of the Datacom documentation.