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 » writing variable length string message to an output queue

Post new topic  Reply to topic
 writing variable length string message to an output queue « View previous topic :: View next topic » 
Author Message
mquser1
PostPosted: Thu Jan 27, 2005 10:12 am    Post subject: writing variable length string message to an output queue Reply with quote

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
View user's profile Send private message
JT
PostPosted: Thu Jan 27, 2005 11:29 am    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Fri Jan 28, 2005 12:30 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mquser1
PostPosted: Tue Feb 01, 2005 5:16 pm    Post subject: Reply with quote

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
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 » writing variable length string message to an output queue
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.