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 problem

Post new topic  Reply to topic
 Database insert problem « View previous topic :: View next topic » 
Author Message
guest468
PostPosted: Mon Jun 12, 2006 8:19 am    Post subject: Database insert problem Reply with quote

Centurion

Joined: 30 May 2006
Posts: 146
Location: NY

How can I copy an XML subtree to a variable. Actually I am trying to insert the subtree into a database as CLOB.

I tried the following but it isn't working...It throws an exception saying 'Invalid wire format retrieved'.


DECLARE InCCSID INT InputRoot.MQMD.CodedCharSetId;
DECLARE InEncoding INT InputRoot.MQMD.Encoding;
SET T6 = CAST(ASBITSTREAM(InputBody.XYZ) AS CHAR CCSID InCCSID ENCODING InEncoding);

Thanks
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Mon Jun 12, 2006 9:03 pm    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

Arer you sure that these lines of code are throwing the error.
What happens when you comment the last line ?
If you are modifying the message format, have you set the new MessageFormat correctly ?
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
JT
PostPosted: Tue Jun 13, 2006 7:31 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Post the ExceptionList here.
Back to top
View user's profile Send private message
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 problem
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.