Author |
Message
|
vlburch |
Posted: Mon Dec 11, 2006 12:49 pm Post subject: Set MQMD.format to MQSTR |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Dec 11, 2006 12:58 pm Post subject: |
|
|
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 |
|
 |
vlburch |
Posted: Mon Dec 11, 2006 1:02 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Dec 11, 2006 1:03 pm Post subject: |
|
|
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 |
|
 |
vlburch |
Posted: Mon Dec 11, 2006 1:11 pm Post subject: |
|
|
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 |
|
 |
RobWin |
Posted: Thu Dec 14, 2006 4:31 am Post subject: |
|
|
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 |
|
 |
JosephGramig |
Posted: Thu Dec 14, 2006 5:05 am Post subject: |
|
|
 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 |
|
 |
|