RPG stored procedures return garbage in WebSphere or Java
When using RPG stored procedures that use arrays for result sets, it can return untranslated EBCDIC in Java when using the native JDBC Driver on different operating system versions. To fix this problem, add ";translate binary=true" to the end of the URL. For example, if the URL passed to getConnection method of DriverManager is "jdbc:db2:myas400" the new URL would be "jdbc:db2:myas400;translate binary=true".
This problem is that the RPG Array is returning CCSID 65535.
This was first published in March 2001
Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.