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 » Just output a character string

Post new topic  Reply to topic
 Just output a character string « View previous topic :: View next topic » 
Author Message
KIT_INC
PostPosted: Wed Sep 26, 2007 8:16 pm    Post subject: Just output a character string Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

Is there a way to just output to a queue just a string of character ?

I used a simple flow
MQINPUT ---COMPUTE --- MQOUTPUT

All I have in the compute node is

DECLARE MSG CHAR '123456';
SET OutputRoot.BLOB.BLOB = MSG;

I just want to have a MQ outout message of '123456'

But I receive error saying that MSG is character and it expects BLOB. If I cast MSG as blob the output is not '123456'
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Sep 26, 2007 10:48 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

There are a number of possible solutions.One that occurs is to define a message set where the single output is a string of whatever length you deem necessary & write your string out using the MRM domain.

Other, possibly simpler solutions will probably be suggested by people more ingenious than me.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Sep 27, 2007 12:16 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Use the CAST function to convert the CHARACTER to BLOB. Don't forget to use the CCSID parameter.
[edited]
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak05680_.htmk05680_.htm


Last edited by kimbert on Thu Sep 27, 2007 6:02 am; edited 1 time in total
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 27, 2007 3:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

kimbert wrote:
Use the CAST function to convert the CHARACTER to BLOB. Don't forget to use the CCSID parameter.
http://winlnx0c.hursley.ibm.com:19100/help/topic/com.ibm.etools.mft.610.doc/ak05680_.htm


That appears to be a link to a page in your local Help...

I think you meant
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak05680_.htm
_________________
I am *not* the model of the modern major general.
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 » Just output a character string
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.