Author |
Message
|
Vinayak.Satapute |
Posted: Wed Mar 31, 2010 5:17 pm Post subject: FTPINputNode to MQPOutput Node:MQMD issue |
|
|
Acolyte
Joined: 20 Dec 2006 Posts: 70
|
Hi All,
I have a scenario where I need to read a file from an FTP server and push the file as MQ message to MQOutput node.
When I read the file using FTPInputNode, it does hold two children under root as OutputRoot.Properties and OutputRoot.BLOB
So I was trying to include OutputRoot.MQMD field for the outgoing MQ Message in between Properties and Blob fields using CREATE NEXTSIBLING statement but ending up in error.
Appreciate if anyone has implemented such scenraio of including the MQMD headers in the outgoing message.
Regards,
Vinayak |
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 31, 2010 6:25 pm Post subject: Re: FTPINputNode to MQPOutput Node:MQMD issue |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Vinayak.Satapute wrote: |
So I was trying to include OutputRoot.MQMD field for the outgoing MQ Message in between Properties and Blob fields using CREATE NEXTSIBLING statement but ending up in error. |
What error? A WMQ code when the message is put? A WMB error building the tree? Or the bitstream?
Old advice is best advice. If you're getting a WMQ code look it up, if you're getting a WMB error a user trace & trace nodes are a good place to start.
Vinayak.Satapute wrote: |
Appreciate if anyone has implemented such scenraio of including the MQMD headers in the outgoing message. |
Yes thank you I have, or something similar. Last time I tried it there was rather more processing between file and message. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
harish_td |
Posted: Wed Mar 31, 2010 10:40 pm Post subject: |
|
|
Master
Joined: 13 Feb 2006 Posts: 236
|
Have you tried to use the MQHeader node for your task? You would not need a single line of ESQL. |
|
Back to top |
|
 |
ghoshly |
Posted: Thu Apr 01, 2010 2:44 am Post subject: |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
Dont forget to change the MQ context in the final MQ Output node
Use "Set All" to be in safer side.. |
|
Back to top |
|
 |
Vinayak.Satapute |
Posted: Fri Apr 02, 2010 2:19 am Post subject: |
|
|
Acolyte
Joined: 20 Dec 2006 Posts: 70
|
Hi All,
Thanks for the inputs.
Harish,
I dont see any MQHeader node present in my MB palette list. My WBIMB version is 6.1.0.6 . Please update further.
By the way It was due to wrong usage of NEXTSIBLING, I was getting the error( Children found in Compute Node and there was blank field in between of OutputRoot.Properties and OutputRoot.MQMD).
CREATE NEXTSIBLING OF OutputRoot.Properties DOMAIN 'MQMD';
has solved the probelm. Previously I was not including DOMAIN 'MQMD' .
Cheers,
Vinayak |
|
Back to top |
|
 |
harish_td |
Posted: Mon Apr 05, 2010 4:44 am Post subject: |
|
|
Master
Joined: 13 Feb 2006 Posts: 236
|
|
Back to top |
|
 |
Vinayak.Satapute |
Posted: Mon Apr 05, 2010 7:33 pm Post subject: |
|
|
Acolyte
Joined: 20 Dec 2006 Posts: 70
|
Hi Harish,
I referred to the link you provided for MQHeader, and it has been described that the node is present under the Websphere MQ palette but in my toolkit with version 6.1.0.6 Under Websphere MQ palette I can see that this node is not listed.
Nodes under the Webspher MQ drawer of the pallette are
MQInput
MQOutput
MQReply
MQGet
MQOptimizedFlow
MQeInput(Depricated)
MQeOutput(Depricated)
Thanks,
Vinayak |
|
Back to top |
|
 |
|