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 » Substring in Mapping node?

Post new topic  Reply to topic
 Substring in Mapping node? « View previous topic :: View next topic » 
Author Message
tanishka
PostPosted: Tue Jul 27, 2010 7:07 am    Post subject: Substring in Mapping node? Reply with quote

Centurion

Joined: 24 Nov 2008
Posts: 144

I need to map element which has 150 character length string to 3 different elements which has each 50 length strings. I tried using substring function in Mapping like below no use.

Message = SUBSTRING($source/po:POMessage/MsgData/comment_desc FROM 1 FOR 50);

Please give me idea how i can achieve this.
Back to top
View user's profile Send private message
Amitha
PostPosted: Tue Jul 27, 2010 7:53 am    Post subject: Reply with quote

Voyager

Joined: 20 Nov 2009
Posts: 80
Location: Newyork

Use xpath function fn:substring($exp, $start, $length).
Back to top
View user's profile Send private message Send e-mail
tanishka
PostPosted: Tue Jul 27, 2010 8:14 am    Post subject: Reply with quote

Centurion

Joined: 24 Nov 2008
Posts: 144

Thanks for your reply. Now its working fine.
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 » Substring in Mapping node?
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.