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 » The problem of using CREATE FUNCTION in ESQL

Post new topic  Reply to topic
 The problem of using CREATE FUNCTION in ESQL « View previous topic :: View next topic » 
Author Message
Yanghui
PostPosted: Mon May 27, 2002 2:20 am    Post subject: The problem of using CREATE FUNCTION in ESQL Reply with quote

Disciple

Joined: 08 May 2002
Posts: 151
Location: Dublin, Ireland

Hi,

No matter how I tried, I just couldn't make CREATE FUNCTION work in Compute node in WMQI2.1 even the sample in manual. The sample is:

DECLARE X INTEGER;
SET X =2;
DECLARE Y INTEGER;
SET Y =MultiplyByTwo(X);
CREATE FUNCTION MultiplyByTwo(Value INTEGER)RETURNS INTEGER
RETURN Value *2;

I always got a syntax error right after MultiplyByTwo in Compute Note. I have no clue what mistake I made. Does anyone know how to use CREATE FUNCTION? Any trick?

Thanks a lot in advance.

Regards
-Yanghui
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Mon May 27, 2002 9:23 am    Post subject: Reply with quote

Jedi Knight

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

Yanghui,

Are you getting syntax error in your control center or are you getting an error while doing a deploy? CREATE FUNCTION is available in CSD2 so make sure you have that installed on your server.
_________________
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
Yanghui
PostPosted: Tue May 28, 2002 12:05 am    Post subject: Reply with quote

Disciple

Joined: 08 May 2002
Posts: 151
Location: Dublin, Ireland

Hi, Kiran,

Thanks a lot for your reply.

The syntax error I got is in the Control Center.

I haven't had CSD2 for my WMQI2.1 but I will. I didn't realize that CREATE FUNCTION is only available in the CSD2. Interesting. Hope CSD2 will solve my problem.

It's not convenient without subroutine in ESQL. Hope CREATE FUNCTION will make my ESQL more efficient. Subflow can be useful sometimes but it's not flexible enough.

Thanks again & Regards

-Yanghui
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » The problem of using CREATE FUNCTION in ESQL
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.