ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » database insert

Post new topic  Reply to topic
 database insert « View previous topic :: View next topic » 
Author Message
madi
PostPosted: Tue Mar 07, 2006 8:30 am    Post subject: database insert Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Hi All

I am trying to insert into a databse using the following code



Code:
INSERT INTO Database.RTCQACDTA.RTINTS(ITEM_NUMBER,QTY) VALUES
      (CAST(FIELDVALUE(InputRoot.XML.test.item) AS CHARACTER),
       CAST(FIELDVALUE(InputRoot.XML.test.qty) AS INTEGER));


I get the following error

Code:
Database error: SQL State '55019'; Native Error Code '-7008'; Error Text '[IBM][CLI Driver][AS] SQL7008N  REXX variable "RTINTS    " contains inconsistent data.  SQLSTATE=55019  '.   

The error has the following diagnostic information:     SQL State             '55019'     SQL Native Error Code '-7008'     SQL Error Text        '[IBM][CLI Driver][AS] SQL7008N  REXX variable "RTINTS    " contains inconsistent data.  SQLSTATE=55019  '   



Does this mean the fields in the database are of different type than those im trying to insert?

The fields in the database are

ITEM_NUMBER = 12 CHARACTER
QTY = 7 NUMERIC 0 DECIMALS.

everything works when i am getting data from the database

plz help
Back to top
View user's profile Send private message
mgk
PostPosted: Tue Mar 07, 2006 8:44 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

What DB and DB version is this?
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
madi
PostPosted: Tue Mar 07, 2006 9:31 am    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Database vendor type: DB2 Universal Database for iSeries, V5R1
JDBC driver: AS/400 Toolbox for Java JDBC driver
Back to top
View user's profile Send private message
Ian
PostPosted: Tue Mar 07, 2006 9:48 am    Post subject: Reply with quote

Disciple

Joined: 22 Nov 2002
Posts: 152
Location: London, UK

Please check and confirm that you have configured your database client and server connections as per the following note ... http://www.mqseries.net/phpBB2/viewtopic.php?t=22439
_________________
Regards, Ian
Back to top
View user's profile Send private message
madi
PostPosted: Tue Mar 07, 2006 10:02 am    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

I can read data from the database doesnt that mean all the connections are right?

I changed the user name - password just in case the permissions were a problem.

But I still cannot write to it and get the same error.
Back to top
View user's profile Send private message
Ian
PostPosted: Wed Mar 08, 2006 3:43 am    Post subject: Reply with quote

Disciple

Joined: 22 Nov 2002
Posts: 152
Location: London, UK

Please ignore my earlier post as that refers to Message Broker ODBC access to DB2 on iSeries.

My suggestion is that you should look at resolving this from a DB2 iSeries perspective (and not from a Message Broker perspective).

Not having looked into this area before I started with the JDBC driver AS/400 Toolbox for Java JDBC driver which had some pretty useful information.

Then a quick search of the IBM website for SQL7008N found the following ...
Error: "SQL7008N REXX Variable <tablename> Contains Inconsistent Data SQLSTATE = 55019"
Redbook(and search PDF for SQL7008N) : Advanced Functions and Administration on DB2 Universal Database for iSeries
_________________
Regards, Ian
Back to top
View user's profile Send private message
madi
PostPosted: Wed Mar 08, 2006 2:32 pm    Post subject: Reply with quote

Chevalier

Joined: 17 Jan 2006
Posts: 475

Quote:
Problem
When running an LSXLC agent that is updating a DB2 table on an iSeries server, you receive the following error:

"SQL7008N REXX variable <tablename> contains inconsistent data SQLSTATE = 55019"

Solution
The error occurs because you are attempting to update a non-journaled DB2 table on the iSeries. To avoid the issue, make sure to set the nojournal property of the LCConnection class to TRUE as shown below:

Option Public
Uselsx "*lsxlc"

Sub Initialize
Dim connect As New LCConnection ("db2")

set your logon info here:

connect.database = "iseriesname"
connect.Userid = "userid"
connect.Password = "password"
connect.Metadata = "tablename "
connect.nojournal = True


Is there a command in broker to set connection parameters?

plz help
madi
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Mar 08, 2006 6:36 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

do you have a DBA for your os/400 system? that would be the right person to fix this problem....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » database insert
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.