Posted: Mon Jun 12, 2006 8:19 am Post subject: Database insert problem
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);
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
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