|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| how do we specifically outpu First and last element. | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | Ajju. | 
			  
				|  Posted: Wed Jan 08, 2003 6:47 am    Post subject: how do we specifically outpu First and last element. |   |  |  
		  |  Voyager
 
 
 Joined: 26 Jul 2002Posts: 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 |  |  
		  |  |  
		  | Ajju. | 
			  
				|  Posted: Fri Jan 10, 2003 9:53 am    Post subject: |   |  |  
		  |  Voyager
 
 
 Joined: 26 Jul 2002Posts: 77
 
 
 | 
			  
				| i am still not able to get through it....... 
 
 assistance is highly appreciable,
 Ajju.
 |  |  
		  | Back to top |  |  
		  |  |  
		  | kirani | 
			  
				|  Posted: Sat Jan 11, 2003 12:28 pm    Post subject: |   |  |  
		  | Jedi Knight
 
 
 Joined: 05 Sep 2001Posts: 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 |  |  
		  |  |  
		  |  |  |  
  
	|    |  | 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
 
 |  |  |  |