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 » Writing certain fields of CWF message set to file

Post new topic  Reply to topic
 Writing certain fields of CWF message set to file « View previous topic :: View next topic » 
Author Message
shivsharan_bage
PostPosted: Mon Aug 23, 2010 7:39 am    Post subject: Writing certain fields of CWF message set to file Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Aug 23, 2010 7:44 am    Post subject: Re: Writing certain fields of CWF message set to file Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Mon Aug 23, 2010 8:23 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 23, 2010 12:00 pm    Post subject: Re: Writing certain fields of CWF message set to file Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Writing certain fields of CWF message set to file
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.