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 » fn:concat

Post new topic  Reply to topic
 fn:concat « View previous topic :: View next topic » 
Author Message
latitude
PostPosted: Fri Aug 28, 2009 8:16 am    Post subject: fn:concat Reply with quote

Apprentice

Joined: 17 Aug 2009
Posts: 36

Hi All,

Im trying to concat two values using

fn:concat(fn:concat($source/Field1,'-'),$source/Field2) on a mapping node

and this works fine when there are values on both Field1 and Field2 but when fields are empty it leaves '-' behind. Can someone help me with syntax please.

thanks
Back to top
View user's profile Send private message
gs
PostPosted: Mon Aug 31, 2009 4:18 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

So you get an alone dash (-) when both Field1 & Field2 are empty?

Why not just put an "if" statement around your code?
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 » fn:concat
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.