|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
maxmsglen |
« View previous topic :: View next topic » |
Author |
Message
|
mqbrk_newbie |
Posted: Thu Sep 30, 2004 9:48 am Post subject: maxmsglen |
|
|
 Acolyte
Joined: 13 Sep 2004 Posts: 70
|
hi,
I am using WBIMB5+CSD2 . I have input messages both of XML and copybook definition. That is basically I am using WBIMB for the following conversion.
XML-CWf,
XML-XML,
CWF-XML
At one point I need to store the incoming input message length in environment variable of the compute node and use it later for logging and instrumentation details. Is there anyway I can find the length of incoming input message, it can be either Copybook or XML. Anyone can help me out regarding this.
thanks, |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Sep 30, 2004 9:51 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can either set your message flow to read your data as BLOB, use the LENGTH function to get the length of the BLOB data, and then use a ResetContentDescriptor node to assign the right parser to parse the data...
OR....
You can use the 'ASBITSTREAM' function on your Input message to convert it back to a string and then take the length of that string.
The first is likely more efficient. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
mqbrk_newbie |
Posted: Thu Sep 30, 2004 11:53 am Post subject: maxmsglen |
|
|
 Acolyte
Joined: 13 Sep 2004 Posts: 70
|
thanks jeff I will try that and get back to you.. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|