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 » Set MQMD.format to MQSTR

Post new topic  Reply to topic
 Set MQMD.format to MQSTR « View previous topic :: View next topic » 
Author Message
vlburch
PostPosted: Mon Dec 11, 2006 12:49 pm    Post subject: Set MQMD.format to MQSTR Reply with quote

Newbie

Joined: 07 Dec 2006
Posts: 4
Location: Kansas City MO

I have an XML message coming into the broker message flow and an XML message going out to an outside vendor that want to have the MQMD.format field set to 'MQSTR' but help is no help. It says to set OutputRoot.MQRFH2.(MQRFH2.Field)Format = 'MQSTR' and that gives me an XML parsing error when I run the message through the ESQL,

So can I directly set the OutputRoot.MQMD.Format = 'MQSTR';

And have that work? My MQ guru here is out sick today and I need a fast answer.

Thanks.
_________________
VLBurch
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Dec 11, 2006 12:58 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Set it to MQFMT_STRING.

MQRFH2.Format is not an MQRFH2.Field, either.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vlburch
PostPosted: Mon Dec 11, 2006 1:02 pm    Post subject: Reply with quote

Newbie

Joined: 07 Dec 2006
Posts: 4
Location: Kansas City MO

So I just do a

SET OutputRoot.MQMD.Format = MQFMT_STRING;

And that will do the trick?

Thanks.
_________________
VLBurch
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Dec 11, 2006 1:03 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Only if your message doesn't have an MQRHF2 in it.

And only if I spelled the MQFTM_ constant correctly.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vlburch
PostPosted: Mon Dec 11, 2006 1:11 pm    Post subject: Reply with quote

Newbie

Joined: 07 Dec 2006
Posts: 4
Location: Kansas City MO

It did not until I started trying to get the format to MQSTR! If I can believe the broker toolkit help, it looks like it recognized MQFMT_STRING as being MQSTR.

I'll try that and see what happens.

Thanks for the help. Some year I'm going to figure this out.
_________________
VLBurch
Back to top
View user's profile Send private message
RobWin
PostPosted: Thu Dec 14, 2006 4:31 am    Post subject: Reply with quote

Newbie

Joined: 14 Dec 2006
Posts: 4

MQMD.Format must be 8 characters long.

OutputRoot.MQMD.Format = 'MQSTR___'; works as well.

_ <- Space
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Thu Dec 14, 2006 5:05 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

But as a "Best Practice", you should use the constants provided. Note that there are many constants available.
_________________
Joseph
Administrator - IBM WebSphere MQ (WMQ) V6.0, IBM WebSphere Message Broker (WMB) V6.1 & V6.0
Solution Designer - WMQ V6.0
Solution Developer - WMB V6.1 & V6.0, WMQ V5.3
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Set MQMD.format to MQSTR
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.