Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

DB2 CHAR to VARCHAR conversion error – PB Docs 2022 – PowerBuilder Library

DB2 CHAR to VARCHAR conversion error – PB Docs 2022

DB2 CHAR to VARCHAR conversion error

Symptom

Connecting to a DB2 Version 10 database using the Rocket Shadow
ODBC 7.3 driver and getting the following error when using a Remote
Procedure Call (RPC) to execute a stored procedure:

This error didn’t occur with the Rocket Shadow ODBC 7.2
driver.

Environment

  • PowerBuilder

  • IBM DB2 Version 10

Cause

The Rocket Shadow 7.3 driver enforces a stricter type mapping than
IBM does. DB2 allows a CHAR to VARCHAR type mapping.  However the Rocket
Shadow 7.3 driver does not.  

It should also be noted that the Rocket JDBC drivers do an
automatic rebind for RPCs whereas the ODBC drivers do not.

Solution

Use the database parameter RPCRebind=1.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x