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 » how do we specifically outpu First and last element.

Post new topic  Reply to topic
 how do we specifically outpu First and last element. « View previous topic :: View next topic » 
Author Message
Ajju.
PostPosted: Wed Jan 08, 2003 6:47 am    Post subject: how do we specifically outpu First and last element. Reply with quote

Voyager

Joined: 26 Jul 2002
Posts: 77

Hi Guys,
how do we specifically output first and last element in TDS format?

my input is XML and output is TDS.
input is:
<ROOT>
<ELEMENT1>data1</ELEMENT1>
<ELEMENT2>data2</ELEMENT2>
.
.
.
.

</ROOT>



now my output shud be

TDS:START||ELEMENT1:data1||................||TDS:END||


I tried setting something like

SET OutputRoot.*[LAST] = 'TDS' || ':'|| 'END' || '||' ||;

but this does'nt work. Pl. advice.

Thanks in adv,
Ajju.
Back to top
View user's profile Send private message
Ajju.
PostPosted: Fri Jan 10, 2003 9:53 am    Post subject: Reply with quote

Voyager

Joined: 26 Jul 2002
Posts: 77

i am still not able to get through it.......


assistance is highly appreciable,
Ajju.
Back to top
View user's profile Send private message
kirani
PostPosted: Sat Jan 11, 2003 12:28 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Ajju,

You should define your output message as TDS in your message set with GroupIndicator set to TDS:START and GroupTerminator set to TDS:END.
Data Element separation method should be set to Taged Delimited for this type of message.
For more details, please refer to Working With Messages manual.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » how do we specifically outpu First and last element.
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.