I have an integration that extracts and inserts data from AS400 table. I am getting data type mismatch errors while inserting. When I tried to select data it is displaying data in a different format (I guess it is Hexa decimal). Below is the query and data, from JDBC adapter 4.6 SP1 connected to broker 6.0.1 SP2.
SELECT t1.VMVENN,t1.VMHOLD,t1.VMPRTC,t1.VMVNNM,t1.VMADD1
FROM VENMST t1 WHERE ( t1.VMVENN = ‘121212’)
Hello, we have been using the webMethods jdbc adapter (v6.0.2.) to read/write/update files on the as/400 file system. Here are the adapter properties we use. I think the parm “TranslateBinary=true” will solve your problem.
Transaction Type NO_TRANSACTION
DataSource Class com.ibm.as400.access.AS400JDBCDataSource
serverName
user:
password ******
databaseName: <enter the as/400 library name where the file is located>
portNumber
networkProtocol
Other Properties: TranslateBinary=true;SelectMethod=direct;libraries=<same as databaseName;Prompt=false
If you have anymore questions let me know…we have been working with this for months…
Hi. I didn’t realize you are using version 4.6 JDBC adapter. Is this the jdbc adapter that runs on the broker enterprise adapter runtime ?
We are using the “new” (version 6) JDBC adapter that runs under the Integration Server Adapter runtime. I’m not sure how you enter the parameters for the v4.6 adapter.
It’s possible the “TranslateBinary=true” will help you…now you just have to find the right place to specify it for your adapter.
Check out the documentation for the adapter. It should give you an example on adding “other properties”.
On 6.1 we use in “other properties”
transaction isolation=read committed;date format=iso;time format=iso;translate binary=true;errors=full;prompt=false;naming=sql
Finally it worked with a space. Thanks to evey one.
I am wondering any documentation is available for these properties with JTOpen driver docs. I could not find in the search.