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 » Help with ASBITSTREAM.

Post new topic  Reply to topic
 Help with ASBITSTREAM. « View previous topic :: View next topic » 
Author Message
wmb61_user
PostPosted: Thu Jul 31, 2008 8:24 am    Post subject: Help with ASBITSTREAM. Reply with quote

Novice

Joined: 08 May 2008
Posts: 18

I am trying to convert the Exceptionlist into Char so that I can send in the e-mail. I am having issues with it. Please see the code below. I get an E-mail message with the relevant informatin as soon as I comment out the exceptionChar in the concatenation. Any help is appreciated.

SET exceptionBlob = ASBITSTREAM(InputRoot.ExceptionList
ENCODING InputRoot.MQMD.Encoding
CCSID 1208);
SET exceptionChar = CAST(exceptionBlob AS CHAR CCSID 1208);

SET OutputRoot.XMLNSC.Email.Body =
'Source Queue= ' ||
InputRoot.MQMD.SourceQueue || car_ret ||
'Control Number= ' ||
CAST(InputRoot.MRM.TG2_OPS_CONTRL_NUM AS CHARACTER) || car_ret ||
'Control Sfx= ' ||
CAST(InputRoot.MRM.TG2_OPS_CONTRL_SFX AS CHARACTER)
||exceptionChar;
Back to top
View user's profile Send private message
sridhsri
PostPosted: Thu Jul 31, 2008 9:20 am    Post subject: Reply with quote

Master

Joined: 19 Jun 2008
Posts: 297

Exception List is not part of the Root element. Its a separate tree.

Change: SET exceptionBlob = ASBITSTREAM(InputRoot.ExceptionList
ENCODING InputRoot.MQMD.Encoding
CCSID 1208);

To: SET exceptionBlob = ASBITSTREAM(InputExceptionList
ENCODING InputRoot.MQMD.Encoding
CCSID 1208);
Back to top
View user's profile Send private message
wmb61_user
PostPosted: Thu Jul 31, 2008 11:25 am    Post subject: Reply with quote

Novice

Joined: 08 May 2008
Posts: 18

sridhsri,

Thanks for the response. Now I get a space when I use the function with the changes you have suggested. I know that that an exception is being generated when I debug it in my tool kit.

Thanks.
Back to top
View user's profile Send private message
chrisc
PostPosted: Thu Jul 31, 2008 8:08 pm    Post subject: Reply with quote

Voyager

Joined: 19 Mar 2006
Posts: 77

I think it's probably because the ExceptionList doesn't have a specific parser attached to it, so it doesn't know how to bitstream it.

Try copying it to somewhere in the Environment where you've set up a folder of domain XML(NSC), and bitstream it from there:

Code:
DECLARE options INTEGER FolderBitStream;
DECLARE exceptionBlob BLOB;
CREATE LASTCHILD of Environment.XML DOMAIN('XML') Name 'ExceptionList';
SET Environment.XML.ExceptionList = InputExceptionList;
SET exceptionBlob = ASBITSTREAM(Environment.XML.ExceptionList OPTIONS options);


As you can see in the code above, I think you need to set the abitstream options to FolderBitStream as well.
Back to top
View user's profile Send private message
marko.pitkanen
PostPosted: Thu Jul 31, 2008 10:56 pm    Post subject: Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

Btw. it is quite easy to produce more human readable exception message from the ExceptionList with while loops, references, move(firstchild, nextsibling, parent), lastmove, fieldname statements and functions.

Marko
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 » Help with ASBITSTREAM.
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.