Don't see any errors that explain COND CODE 0004 when trying to copy/add a table from test to production environment. The instructions are not all that clear.
1000 SET Transaction in our Datacom Core 15.1 documentation indicates:
If you add a database occurrence to Datacom Datadictionary and attempt to copy the structure to PROD status without using the 1000 SET transaction to assign DATACOM-IDs to the substructure occurrences, you will receive the following message. Datacom Datadictionary then assigns a unique DATACOM-ID attribute-value to the PROD status occurrence.
WARNING DATACOM-ID ZERO
Datacom Datadictionary
Security Level: 1 Maintenance Report
*** VERIFY WARNING MESSAGES ***
DDWKEY0022 WARNING DATACOM-ID ZERO
DDWKEY0022 is a warning message to inform the user that the Key ID was not set for this key, and it was assigned a value when it was copied to PROD status.
If you want to accept the assigned value, nothing further is needed. However, if you want to assign a specific value for this key's ID, you need to update the test occurrence with the desired value, then you can copy it to PROD status.