Originally posted by: paul.brett
Please do not alter the Typetree after it has been imported.
I created a test table here:
create table TEST7(
Name varchar(20),
LastUpdate timestamp)
go
...and then used the Database Interface Designer to create the Typetree. The object properties are:
{CCYY-MM-DD}[ {HH24:MM[:SS[.6-6]]}
....as I would expect. I created a simple insert map, and it ran successfully.
<4200-7496-07/31/15 12:16:03>: Validating the adapter command...
<4200-7496-07/31/15 12:16:03>: Database type is DB2
<4200-7176-07/31/15 12:16:03>: Connecting...
<4200-7176-07/31/15 12:16:03>: Datasource : DSNV1007
<4200-7176-07/31/15 12:16:03>: UserID : pab1
<4200-7176-07/31/15 12:16:03>: Password : *****
<4200-7176-07/31/15 12:16:03>: Context: Output Card, Transaction scope: Map
<4200-7176-07/31/15 12:16:03>: On Failure: Rollback, On Success: Create
<4200-7176-07/31/15 12:16:03>: TRACE command specified, file: Y:\DB2\Test1.dbl
<4200-7176-07/31/15 12:16:03>: Table name: PAB1.TEST7
<4200-7176-07/31/15 12:16:03>: Connection to datasource DSNV1007 has been established.
<4200-7176-07/31/15 12:16:03>: Servername/alias:->
<4200-7176-07/31/15 12:16:03>: DB2
<4200-7176-07/31/15 12:16:03>: Database Version/Type:->
<4200-7176-07/31/15 12:16:03>: 10.01.0005
<4200-7176-07/31/15 12:16:03>: Client Library/environment(ODBC DriverName):->
<4200-7176-07/31/15 12:16:03>: DB2CLI.DLL
<4200-7176-07/31/15 12:16:03>: Client Library version (ODBC DriverVersion):->
<4200-7176-07/31/15 12:16:03>: 10.01.0000
<4200-7176-07/31/15 12:16:03>: Database connect status: rc = 0, count = 1.
<4200-7176-07/31/15 12:16:03>: Returned status: (0) Success
<4200-7176-07/31/15 12:16:03>: Interface library version 8.4.1(14)
<4200-7176-07/31/15 12:16:03>: Map: Y:\DB2\Test1.mmc, Timestamp: 07/31/15 12:16:03.
<4200-7176-07/31/15 12:16:03>: Loading data for output card 1.
<4200-7176-07/31/15 12:16:03>: Database adapter: DB2 Version 8.4.1.3(14)
<4200-7176-07/31/15 12:16:03>: Starting database load to table PAB1.TEST7...
<4200-7176-07/31/15 12:16:03>: Datasource : DSNV1007
<4200-7176-07/31/15 12:16:03>: UserID : pab1
<4200-7176-07/31/15 12:16:03>: Password : *****
<4200-7176-07/31/15 12:16:03>: Context: Output Card, Transaction scope: Map
<4200-7176-07/31/15 12:16:03>: On Failure: Rollback, On Success: Create
<4200-7176-07/31/15 12:16:03>: TRACE command specified, file: Y:\DB2\Test1.dbl
<4200-7176-07/31/15 12:16:03>: Table name: PAB1.TEST7
<4200-7176-07/31/15 12:16:03>: Update mode is off.
<4200-7176-07/31/15 12:16:03>: Database column IDENTITY status: 0.
<4200-7176-07/31/15 12:16:03>: The columns are of the following types:
<4200-7176-07/31/15 12:16:03>: Column 1 (NAME) type is VARCHAR, precision is 20.
<4200-7176-07/31/15 12:16:03>: Database column IDENTITY status: 0.
<4200-7176-07/31/15 12:16:03>: Column 2 (LASTUPDATE) type is TIMESTAMP, precision is 26.
<4200-7176-07/31/15 12:16:03>: The insert statement to be executed is:
<4200-7176-07/31/15 12:16:03>: INSERT INTO PAB1.TEST7 VALUES (?,?)
<4200-7176-07/31/15 12:16:03>: INSERT INTO PAB1.TEST7 VALUES (?,?)
<4200-7176-07/31/15 12:16:03>: Driver version is : 03. Version 1 flag set to 0.
<4200-7176-07/31/15 12:16:04>: 1 rows inserted.
<4200-7176-07/31/15 12:16:04>: Database load complete.
<4200-7176-07/31/15 12:16:04>: Returned status: (0) Success
<4200-7176-07/31/15 12:16:04>: Cleaning up and committing the transaction...
<4200-7176-07/31/15 12:16:04>: Transaction commit succeeded.
<4200-7176-07/31/15 12:16:04>: Returned status: (0) Success
I note the error in your DBL:
Error in SQLExecute
Message: [IBM][CLI Driver] CLI0111E Numeric value out of range. SQLSTATE=22003
SQL State: 22003
....and I think perhaps you're focusing on the wrong column. This indicates an issue with an INT field.
Thank-you.
Paul.
Follow me on Twitter
#IBM-Websphere-Transformation-Extender#DataExchange#IBMSterlingTransformationExtender