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 » CWF Repeating length

Post new topic  Reply to topic
 CWF Repeating length « View previous topic :: View next topic » 
Author Message
mahek
PostPosted: Fri Jan 19, 2007 7:56 am    Post subject: CWF Repeating length Reply with quote

Voyager

Joined: 10 Sep 2004
Posts: 87

Hi all,

my input message is and XML in which for example

<A>
<b>ABC</b>
<b>efg</b>
<b>hij</b>
<b>klm</b>
</A>

the tag b can be repeated minimum 0 and maximum 12 times. i want to transform this into a cobol copy cook fixed length message.i have a cwf message set in which the the tag b is mapped. irrespect of the number of times the tag is repeated i have to send the element in cwf 12 times for example b is repeated 3 times then i have to send the element 3 times and the rest 9 times should be sent as a blank. the output is just a single message on the queue consisting of the 12 elements. iknow we can use esql for this and use for loop .is there any way we can achive this in the message set declaration.

thanks in advance
Back to top
View user's profile Send private message
kimbert
PostPosted: Sun Jan 21, 2007 11:23 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
is there any way we can achive this in the message set declaration.
Yes - this is fairly straightforward. Just assign a default value ( three space characters ) to element B. Any missing occurrences of b will be automatically written. See http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac26040_.htm, under the section 'Default'.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » CWF Repeating length
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.