If a program is issuing DC001036 messages, make sure that any involved utilities, for example FORMAT, LOAD, INSTALL STAMPS, SYNCHRONIZE STAMPS, have been run while CONNECTed to the correct catalog.
It is not necessarily SYSTEM and in most cases it won't be.
Also, note that if the database has been FORMATted BY FILE, a manual INSTALL STAMPs must be run.
When the SQL commands are issued you will CONNECT TO a DBNAME that contains both the SQL catalog segment (where the definitions reside) and the SQL data segment. Make sure both are pointing to the correct Catalog and Data areas/files.
In one case where this error occurred we saw that the DMCL being used in a local mode IDMSBCF job pointed to DSNs for the wrong Data Area Files. When the correct DD/DSNs were added to the JCL to point to the correct Data files that matched the definitions in the Catalog the error did not occur. The DMCL File DSNs had to be corrected.