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 » ESQL FUNCTIONS

Post new topic  Reply to topic
 ESQL FUNCTIONS « View previous topic :: View next topic » 
Author Message
cute_pav
PostPosted: Fri Aug 23, 2002 3:15 pm    Post subject: ESQL FUNCTIONS Reply with quote

Acolyte

Joined: 04 Jan 2002
Posts: 65
Location: usa

I am trying to write function using ESQL.I tried with the same syntax from the document as follows:

CREATE FUNCTION MultiplyByTwo(Value INTEGER) RETURNS INTEGER
RETURN Value * 2;

I don't have any error in editor of the computenode but i am getting the following error while deployment with the broker.
Syntax error : expected 'FIELD, PARENT, PREVIOUSSIBLING, NEXTSIBLING, FIRSTCHILD, LASTCHILD' but found 'integer FUNCTION'

Anyone can shed some views on what is went wrong?
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
kirani
PostPosted: Fri Aug 23, 2002 3:25 pm    Post subject: Reply with quote

Jedi Knight

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

Do you have any ESQL code after this function? Try moving function definition towards the end of your ESQL code.
_________________
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
cute_pav
PostPosted: Fri Aug 23, 2002 3:51 pm    Post subject: ESQL FUNCTION Reply with quote

Acolyte

Joined: 04 Jan 2002
Posts: 65
Location: usa

Kirani,
thankz for prompt reply and suggestion.

I tried the same code all places in editor and also only using the code in compute node.The error remains the same.

Syntax error : expected 'FIELD, PARENT, PREVIOUSSIBLING, NEXTSIBLING, FIRSTCHILD, LASTCHILD' but found 'integer FUNCTION'.

The expected token was not found.

Correct the syntax of your expression and redeploy the message flow.

Any corrections needs to be done on code syntax?
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
kirani
PostPosted: Fri Aug 23, 2002 4:18 pm    Post subject: Reply with quote

Jedi Knight

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

I copy/pasted the same code in my MessageFlow and it deployed without any problem.
This feature is available in WMQI 2.1 CSD2 only. Do you have CSD2 installed on your WMQI 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
sgopal
PostPosted: Fri Aug 23, 2002 4:23 pm    Post subject: Reply with quote

Acolyte

Joined: 30 Jul 2002
Posts: 63

I think you have not installed CSD2 on your WMQI Server.

Because broker see the CREATE word and it fails when FUNCTION IS USED, it expects 'FIELD, PARENT, PREVIOUSSIBLING, NEXTSIBLING, FIRSTCHILD, LASTCHILD'
Back to top
View user's profile Send private message
cute_pav
PostPosted: Sat Aug 24, 2002 11:59 am    Post subject: ESQL FUNCTIONS Reply with quote

Acolyte

Joined: 04 Jan 2002
Posts: 65
Location: usa

hi,
I am using wmqi2.1 broker in solaris. where can I find(dir) the CSD2 memo.ptf file in this box to confirm whether this serviecelevel applied earlier or not?.Any clues are appreciated.

pavan
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
kirani
PostPosted: Sat Aug 24, 2002 12:40 pm    Post subject: Reply with quote

Jedi Knight

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

Pavan,

mqmo.ptf file is created only after installing CSD. This file is located in WMQI home directory.

Have a look at,
http://www.mqseries.net/phpBB2/viewtopic.php?t=3508&highlight=memo+ptf
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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