The error "…[DB2/LINUXX8664] SQL0204N 'user-ID.INDEXNAME' is an undefined name. SQLSTATE=42704" appears after you run the code generator


You use the Table Loader with the following properties in SAS® Data Integration Studio in order to append data to an existing DB2 table:

As shown, the Index Condition properties are meant to switch off the index before appending the data. However, when you run your code, you see an error similar to the following:

ERROR: CLI execute error: [IBM][CLI Driver][DB2/LINUXX8664] SQL0204N "user-ID.INDEXNAME" is an undefined name. SQLSTATE=42704

This message appears because the schema does not match a user’s default schema.

Use the following workarounds to avoid switching to user-written code: