IBM Support

Incorrect values for hexadecimal constants in SQL statements sent to data sources whose code page differs from the federated server.

Troubleshooting


Problem

Hexadecimal constants such as X'0123ABCD' used in SQL statements are sent to a data source as if they were character string constants. If any byte of the hexadecimal constant does not correspond to a printable ASCII character (for example, all four of the bytes in X'0123ABCD') then the value sent to the data source will not be correct. To avoid this problem, use character string constants or the HEX() function in SQL statements instead.

[{"Product":{"code":"SS2K5T","label":"InfoSphere Federation Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Federated Server","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.1;9.5;9.7","Edition":"All Editions","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

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:
25 April 2025

UID

swg21469764