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 » Regarding user defined ESQL function.

Post new topic  Reply to topic
 Regarding user defined ESQL function. « View previous topic :: View next topic » 
Author Message
Srinu
PostPosted: Mon Mar 13, 2006 9:32 am    Post subject: Regarding user defined ESQL function. Reply with quote

Acolyte

Joined: 15 Jun 2005
Posts: 51

Hi,

In my present scenario, I giving an XML message(two elements, one with integer value and other with string value) and i want to concat those two values and then map the concatinated string to an element in mapping node. For this I have written a user defined function in message flow ESQL file. After adding this project to bar file and when I try to deploy to broker I am getting an error as "Undefined function " function name".

Thanks in advance,

Srinu
Back to top
View user's profile Send private message
narendrach
PostPosted: Mon Mar 13, 2006 11:25 am    Post subject: Reply with quote

Voyager

Joined: 29 Jun 2005
Posts: 78

CREATE FUNCTION concatValues(IN val INTEGER, IN str CHAR) RETURNS CHAR
BEGIN
return str || ' plus int val ' || CAST(val AS CHAR);
END;

IN ESQL Write the above code

and in Mapping editor pane use this call

esql:concatValues($source/simple/int, $source/simple/str).
_________________
Narendra CH
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Regarding user defined ESQL function.
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.