|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
writing variable length string message to an output queue |
« View previous topic :: View next topic » |
Author |
Message
|
mquser1 |
Posted: Thu Jan 27, 2005 10:12 am Post subject: writing variable length string message to an output queue |
|
|
Novice
Joined: 03 Jun 2004 Posts: 23
|
Hi all,
I have a message flow that composes a variable length string message. This message needs to be sent to an output queue. What is the proper way to do this? Do I have to have an MRM message set for this? Or is it possible without one?
I tried sending it out as a BLOB but I am unable to CAST my string to blob as it contains spaces. I am getting an error that says only characters 1-9 and a-f/A-F can be converted to blob.
Any ideas? Please help.
Warm regards, |
|
Back to top |
|
 |
JT |
Posted: Thu Jan 27, 2005 11:29 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Post your ESQL code and the ExceptionList that was generated.
Are you specifying a CCSID on the CAST statement? |
|
Back to top |
|
 |
kirani |
Posted: Fri Jan 28, 2005 12:30 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
You need to use code similar to this.
Code: |
DECLARE mystr CHAR "my output message";
SET OutputRoot."BLOB"."BLOB" = CAST(mystr as BLOB CCSID InputRoot.MQMD.CodedCharSetId);
|
_________________ 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 |
|
 |
mquser1 |
Posted: Tue Feb 01, 2005 5:16 pm Post subject: |
|
|
Novice
Joined: 03 Jun 2004 Posts: 23
|
Thank you both for the responses. It is working fine, once i put in the ccsid and codepage. Thanks again. |
|
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
|
|
|
|