|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to add a <U+0085> at the end of a message?! |
« View previous topic :: View next topic » |
Author |
Message
|
Testo |
Posted: Tue Sep 09, 2003 2:35 am Post subject: How to add a <U+0085> at the end of a message?! |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
I have a requirement from a customer to add a NewLine EBCDIC character (15) - which has the equivalent of <U+0085> - at the end of a message without altering the message set.
I have created a new Compute node just before the MQOutput node and I made some experiments with ASBITSTREAM and OutputRoot.BLOB but I'm not able to get the result wanted.
Any hint of possible eSQL statements to get it done?!
Thanks in advance,
Andrea Tedone
IBM AMS EMEA |
|
Back to top |
|
 |
Craig B |
Posted: Tue Sep 09, 2003 4:18 am Post subject: |
|
|
Partisan
Joined: 18 Jun 2003 Posts: 316 Location: UK
|
Hi,
When you say you have experimented with the ASBITSTREAM function what did you code for this? You mention a messageSet, so you are probably in the MRM domain. Did you try something the following :
Code: |
-- Copy All headers ESQL
SET OutputRoot."BLOB"."BLOB" = ASBITSTREAM(InputRoot.MRM, InputRoot.MQMD.Encoding,InputRoot.MQMD.CodedCharSetId, InputRoot.Properties.MessageSet,InputRoot.Properties.MessageType, InputRoot.Properties.MessageFormat, RootBitStream) || X'15';
|
Since the bitstream is in hex, then you will be adding X'15' instead of <U+0085> TDS mneumonic you would have put in a messageSet. _________________ Regards
Craig |
|
Back to top |
|
 |
Testo |
Posted: Tue Sep 09, 2003 4:35 am Post subject: Thanks, it works! <eom> |
|
|
 Centurion
Joined: 26 Feb 2003 Posts: 120 Location: Italy - Milan
|
|
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
|
|
|
|