|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Writing certain fields of CWF message set to file |
« View previous topic :: View next topic » |
Author |
Message
|
shivsharan_bage |
Posted: Mon Aug 23, 2010 7:39 am Post subject: Writing certain fields of CWF message set to file |
|
|
Newbie
Joined: 23 Aug 2010 Posts: 1
|
I have a message set (CWF , binary) say
Message-> M1
a
|_ b
|_ c
Is it possible to write only field c to a file using only Data Location property of FileOutput node.
It does not seem to accept $Body/M1/a/c .
The Body being passed is
MRM
|____a
*****|___b
***** |___c
Is the data location incorrect or body incorrect . Or is not possible to write only certain fields of CWF msg set.
(b is an int , c has length reference of b) |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 23, 2010 7:44 am Post subject: Re: Writing certain fields of CWF message set to file |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
shivsharan_bage wrote: |
Or is not possible to write only certain fields of CWF msg set. |
AFAIK (and I've certainly not tried it) you have to use the whole of a CWF message to format an output bitstream. What you're trying might work if you were writing out XML but I wouldn't surprised if it didn't. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Aug 23, 2010 8:23 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
Or is not possible to write only certain fields of CWF msg set. |
You can use FolderBitstream to write a subtree instead of the entire message. The 'subtree' can be be a simple element.
I don't know whether the 'Data Location' property of the FileOutput node automatically selects FolderBitstream mode for you.
You can probably do what you need using ASBITSTREAM and then send the resulting BLOB to the FileOutput node. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Aug 23, 2010 12:00 pm Post subject: Re: Writing certain fields of CWF message set to file |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
shivsharan_bage wrote: |
I have a message set (CWF , binary) say
Message-> M1
a
|_ b
|_ c
Is it possible to write only field c to a file using only Data Location property of FileOutput node.
It does not seem to accept $Body/M1/a/c .
The Body being passed is
MRM
|____a
*****|___b
***** |___c
Is the data location incorrect or body incorrect . Or is not possible to write only certain fields of CWF msg set.
(b is an int , c has length reference of b) |
Have you tried with $Body/a/c ??  _________________ MQ & Broker admin |
|
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
|
|
|
|