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 » How to pass ExceptionList to an XML Tag

Post new topic  Reply to topic
 How to pass ExceptionList to an XML Tag « View previous topic :: View next topic » 
Author Message
limws
PostPosted: Tue Nov 23, 2004 7:13 pm    Post subject: How to pass ExceptionList to an XML Tag Reply with quote

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
View user's profile Send private message
JT
PostPosted: Tue Nov 23, 2004 7:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
limws
PostPosted: Tue Nov 23, 2004 7:42 pm    Post subject: Tried but ExceptionList is not included Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Tue Nov 23, 2004 11:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
limws
PostPosted: Thu Nov 25, 2004 8:14 pm    Post subject: Tried and it works Reply with quote

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
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 » How to pass ExceptionList to an XML Tag
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.