By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,226 Members | 1,027 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,226 IT Pros & Developers. It's quick & easy.

Data change table references and SQLCODE -20165

P: n/a
I am trying to insert the same set of data into two tables with the
same schema. One table is used for processing, the other for audit
purposes. I thought that I could use the data change table reference
FINAL TABLE to accomplish this, but I am getting a -20165 SQLCODE in
the bind step of compilation (DB2 v8 + COBOL on z/OS). Basically, the
statement looks like this:

INSERT INTO AUDIT_TABLE
SELECT * FROM FINAL TABLE (
INSERT INTO PROCESSING_TABLE
VALUE1, VALUE2, VALUE3
)

Is this simply too deeply nested?

Sep 6 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.