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 » User defined Functions

Post new topic  Reply to topic
 User defined Functions « View previous topic :: View next topic » 
Author Message
rsashi
PostPosted: Tue Sep 18, 2007 9:22 pm    Post subject: User defined Functions Reply with quote

Apprentice

Joined: 29 Jan 2004
Posts: 35

I like to pass a whole InputRoot into a user defined function and return a Integer value. Can some on help me in providing the syntax for the above req.... and also can we set OutPutRoot values inside a user defined function too?
thanks for your help
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Tue Sep 18, 2007 10:31 pm    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

This has been discussed multiple times in the forum. Please search for your answer.
You can also look at the online manual for help on function syntax.
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
rsashi
PostPosted: Wed Sep 19, 2007 8:39 am    Post subject: Reply with quote

Apprentice

Joined: 29 Jan 2004
Posts: 35

I am getting below error when i deploy a flow which is calling the procedure ,

An expression which evaluates to a scalar variable or a field is required here.

The expression supplying the parameter must evaluate to a value of a suitable type. The given expression cannot possibly do so.

My procedure is defined as ,

[b]CREATE PROCEDURE Prod1(IN inputRef REFERENCE,INOUT outputref REFERENCE)[/b]

and i am calling procedure from the flow like
DECLARE inputRef REFERENCE TO InputRoot;
DECLARE outputref REFERENCE TO OutputRoot;
[b]CALL Prod1(inputRef,outputref);[/b]

Thanks your help.
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Wed Sep 19, 2007 9:00 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi rsashi,

http://www.mqseries.net/phpBB2/viewtopic.php?t=10595

Regards.
Back to top
View user's profile Send private message Send e-mail
rsashi
PostPosted: Wed Sep 19, 2007 9:13 am    Post subject: Reply with quote

Apprentice

Joined: 29 Jan 2004
Posts: 35

Thanks for your link.I am still getting the same error

An expression which evaluates to a scalar variable or a field is required here.

The expression supplying the parameter must evaluate to a value of a suitable type. The given expression cannot possibly do so.


CALL Prod1( InputRoot , OutputRoot);

CREATE PROCEDURE Prod1(IN InputRoot REFERENCE, IN OutputRoot REFERENCE)
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Wed Sep 19, 2007 10:11 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi rsashi,

Is this a deployment error you are talking of ? What is the line number indicated ?

Please paste the entire code.

Regards.
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 » User defined 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.