IBM Support

SQL0332N Character conversion from the source code page "0" to the target code page "<database codepage>" is not supported

Troubleshooting


Problem

SQL0332N error received when executing CLI application using a DB2 Client or Driver from DB2 Version 9.7 fix pack 6 (9.7.0.6), or DB2 Version 9.7 fix pack 5 (9.7.0.5). Two scenarios may generate this symptom: 1. When connection string passed to SQLDirverConnect() contains an invalid attribute that results only in a warning message CLI004W. The connection to the database would be successful with warning (SUCCESS_WITH_INFO), but several of the DB2 CLI APIs against this database may throw the -332 error further down the application logic. The problem has been seen with SQLGetCursorName() API 2. When attempting to access a DRDA nickname in a Federation Server environment with trusted context connection enabled. Though most of statements that access the nickname would be successful, several of them may fail with the -332 error. For example: -DELETE FROM WHERE (SELECT * FROM FETCH FIRST N ROWS ONLY) -UPDATE SET set_clause (NOTE: problem happens if set_clause cannot be pushed down to remote) -DELETE FROM WHERE CURRENT OF -UPDATE SET set_clause WHERE CURRENT OF

Symptom

Following is an example of the symptom that may be received:

SQL0332N Character conversion from the source code page "0" to the target code page "1202" is not supported."

[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Programming Interface - CLI","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
30 April 2025

UID

swg21600269