DB2 Load error

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
RaviM
Participant
Posts: 12
Joined: Thu Aug 19, 2004 4:13 pm

DB2 Load error

Post by RaviM »

Hi All,

I am gettinng below error while loading into AS400 through ODBC stage

ERROR :
[DataStage][SQL Client][ODBC][IBM][CLI Driver][AS] SQL7008N REXX variable "SBMSCHIR " contains inconsistent data. SQLSTATE=55019


Has anyone any ideas...........
The OS Im using is Windows 2000

Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The error message indicates that the row is getting out of DataStage successfully, but something about it is being rejected by DB2. Chat with your DBA as to the meaning and remedial action possible when error code SQL7008N occurs. Track down (or search the Web) for information about the generic ODBC error 55019.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kwwilliams
Participant
Posts: 437
Joined: Fri Oct 21, 2005 10:00 pm

Post by kwwilliams »

After your sql put the words: "WITH NONE". So if your sql look like:

Insert into table1 (col1,col2) values(?,?)

Change it to:

Insert into table1 (col1,col2) values(?,?) with none

I believe that your target table is a non-journaled table, and you need to either set the nonjournal property of your connection to true or use with none after your statement.
RaviM
Participant
Posts: 12
Joined: Thu Aug 19, 2004 4:13 pm

Post by RaviM »

Working gr8
Thanks dude
kwwilliams wrote:After your sql put the words: "WITH NONE". So if your sql look like:

Insert into table1 (col1,col2) values(?,?)

Change it to:

Insert into table1 (col1,col2) values(?,?) with none

I believe that your target table is a non-journaled table, and you need to either set the nonjournal property of your connection to true or use with none after your statement.
kwwilliams
Participant
Posts: 437
Joined: Fri Oct 21, 2005 10:00 pm

Post by kwwilliams »

RaviM wrote:Working gr8
Thanks dude
Glad to hear it!
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That's obviously a DB2 thing. In Informix you might have created the table with no logging. Doubtless other databases have similar functionality.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
deva
Participant
Posts: 104
Joined: Fri Dec 29, 2006 1:54 pm

Post by deva »

RaviM wrote:Working gr8
Thanks dude
kwwilliams wrote:After your sql put the words: "WITH NONE". So if your sql look like:

Insert into table1 (col1,col2) values(?,?)

Change it to:

Insert into table1 (col1,col2) values(?,?) with none

I believe that your target table is a non-journaled table, and you need to either set the nonjournal property of your connection to true or use with none after your statement.


What if it is a journaled table? what kind of properties we need to set?

We are using db2 connector. If possible can you please send the odbc entry?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DB2 Connector does not use ODBC protocol.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply