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 » Using CAST to generate message dump..

Post new topic  Reply to topic
 Using CAST to generate message dump.. « View previous topic :: View next topic » 
Author Message
mirakal
PostPosted: Tue Oct 23, 2007 9:12 pm    Post subject: Using CAST to generate message dump.. Reply with quote

Novice

Joined: 19 Sep 2007
Posts: 11

Hi,

Need some help with correcting my poor development skills in MB.

Here is my input message which I am trying to use for exception flow ..
<Details><Fname>RODNEY</Fname><LastName>JOHN</LastName><ID>2626</ID></Details>


Here is the line I coded looking at some of the examples to generate mesage dump..

SET csEXCEPTION.MessageDump = CAST(BITSTREAM(InputBody) AS CHARACTER CCSID InputRoot .Properties.CodedCharSetId);


And I get the this in the fail.queue

<MessageDump>&lt;Details&gt;&lt;Fname&gt;RODNEY&lt;/Fname&gt;&lt;LastName&gt;JOHN&lt;/LastName&gt;&lt;ID&gt;2626&lt;/ID&gt;&lt;/Details&gt;</MessageDump>


I hope some thing needs to be corrected..can you gimme a hint?

I want the message dump as same as input message..


Thanks.
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Tue Oct 23, 2007 9:52 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi mirakal,

What you are seeing is not entirely incorrect, it's just another representation of the < and > tags.

Use ASBITSTREAM and try, maybe with the CCSID and ENCODING options too. There are some good posts related to this in the forum...search.

Regards.
Back to top
View user's profile Send private message Send e-mail
AkankshA
PostPosted: Tue Oct 23, 2007 9:55 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Code:
CAST(BITSTREAM(InputBody) AS CHARACTER CCSID InputRoot .Properties.CodedCharSetId);


plz use ASBITSTREAM

regd the conversion oif < to &lt just do a search here.. u ll find many posts talking abt it
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Using CAST to generate message dump..
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.