|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to pass ExceptionList to an XML Tag |
« View previous topic :: View next topic » |
Author |
Message
|
limws |
Posted: Tue Nov 23, 2004 7:13 pm Post subject: How to pass ExceptionList to an XML Tag |
|
|
 Newbie
Joined: 29 Jul 2004 Posts: 4
|
I have tried to output ExceptionList to a XMLtag by
[1] SET msgBLOB = BITSTREAM(InputExceptionList);
[2] SET msgCHAR = CAST(msgBLOB AS CHAR CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);
[3] Set OutputRoot.XML.Message.Body = 'Please check exception trace logs for more details.' || msgCHAR;
However, msgBLOB is always Blank. Hence, msgCHAR is also BLANK.
Appreciate if anyone can suggest how to access ExceptionList |
|
Back to top |
|
 |
JT |
Posted: Tue Nov 23, 2004 7:20 pm Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
See if you have any luck with this:
Code: |
SET OutputRoot.XML.Message.Body = 'Please check exception trace logs for more details.' || CAST(ASBITSTREAM(InputExceptionList) AS CHARACTER CCSID InputRoot.MQMD.CodedCharSetId); |
|
|
Back to top |
|
 |
limws |
Posted: Tue Nov 23, 2004 7:42 pm Post subject: Tried but ExceptionList is not included |
|
|
 Newbie
Joined: 29 Jul 2004 Posts: 4
|
Body only contains "'Please check WMQI.LQ.Error Queue, exception trace logs for more details."
I will try
Set OutputRoot.XML.Message.Body = CAST(ASBITSTREAM(InputExceptionList) AS CHARACTER CCSID InputRoot.MQMD.CodedCharSetId);
Thanks[/i] |
|
Back to top |
|
 |
kirani |
Posted: Tue Nov 23, 2004 11:20 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
BITSTREAM will not work for you. It only works on Message tree. ASBITSTREAM is the right way of doing this. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
limws |
Posted: Thu Nov 25, 2004 8:14 pm Post subject: Tried and it works |
|
|
 Newbie
Joined: 29 Jul 2004 Posts: 4
|
Tried this and it worked.
DECLARE msgBLOB2 BLOB;
DECLARE msgCHAR CHAR;
CREATE FIELD OutputRoot.XML.Message.ExceptionInformation;
SET OutputRoot.XML.Message.ExceptionInformation = InputExceptionList;
SET msgBLOB2 = ASBITSTREAM(OutputRoot.XML.Message.ExceptionInformation,InputRoot.MQMD.Encoding,InputRoot.MQMD.CodedCharSetId,'','','',FolderBitStream);
Set OutputRoot.XML.Message.Body = '---Exception Information---' || CAST(msgBLOB2 AS CHARACTER CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding); |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|