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 » MQSI ver 2.1 and Create procedure Statment(2)

Post new topic  Reply to topic
 MQSI ver 2.1 and Create procedure Statment(2) « View previous topic :: View next topic » 
Author Message
Fady
PostPosted: Sun Jan 26, 2003 1:48 am    Post subject: MQSI ver 2.1 and Create procedure Statment(2) Reply with quote

Novice

Joined: 15 Jan 2003
Posts: 15
Location: Egypt , KSA

Hello :

I Built a stored procedure Using Stored procedure Builder in DB2 and i can call it when i'm connected to the database from the control ceneter so nothing wrong with Stored procedure registeration

the problem is when i call this stored procedure from MQSI on the Same machine that has the DB2 server + the node contains an ODBC connection to the Database the MQSeries doesn't accept the Create Procedure or Call statments

Suppose that i have stored procedure in DB2 called TransCount on Database Called Test and it works pretty good From the control center
I made an ODBC that connect to test Database and it works fine

Now From MQSeries in compute Node i attached the ODBC to this Node then i worte those 2 line of Codes

Declare MX integer;
CREATE PROCEDURE CountTrans(OUT MX Integer)External Name CountTrans;
CALL CountTrans(MX);
then the MQSI Raise Syntax Error after Create Procedure Statment

in case using these Statments in reverse as the manaual
Declare MX integer;
CALL CountTrans(MX);
CREATE PROCEDURE CountTrans(OUT MX Integer)External Name CountTrans;
MQSeries raise Not a valid compute Expersion !!!

Don't you think that MQSI can't identify the Statment ?!
thank you


Last edited by Fady on Sun Jan 26, 2003 6:33 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail MSN Messenger
yaakovd
PostPosted: Sun Jan 26, 2003 3:28 am    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

When the procedure is called, the library and procedure within the library must exist and be accessible from the database server machine.

Follow this link for more information: http://www-3.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/v8infocenter.d2w/report?target=mainFrame&fn=r0008328.htm
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
Fady
PostPosted: Sun Jan 26, 2003 6:43 am    Post subject: MQSI ver 2.1 and Create procedure Statment(2) Reply with quote

Novice

Joined: 15 Jan 2003
Posts: 15
Location: Egypt , KSA

The DB2 Server and MQSI are on the Same machine and the SP is working fine from different applications
i guess the problem in MQSI can't identify the Create Procedure statment
or Call

?!!!!!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kirani
PostPosted: Mon Jan 27, 2003 8:54 pm    Post subject: Reply with quote

Jedi Knight

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

CREATE PROCEDURE is avaiable in WMQI 2.1 CSD2 and above. What CSD level you are at?

Don't worry about the Syntax error in Control Center, try deploying your message flow and see if you get any deploy error.
Also, use following code:

Code:

Declare MX integer;
CALL CountTrans(MX);
CREATE PROCEDURE CountTrans(OUT MX Integer)EXTERNAL NAME TransCount ;

_________________
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
Fady
PostPosted: Tue Jan 28, 2003 6:01 am    Post subject: any one tell me how i can read the OutPut paramater into Msg Reply with quote

Novice

Joined: 15 Jan 2003
Posts: 15
Location: Egypt , KSA

No i Can exceute stored procedure on both Oracle and DB2 using that code
but when i add the flowing code

Set OutputRoot.XML.data.Tmp = MX ;

the message flow doesn't want to be Deployed any more and always an error come up 'Integer set ' Unknown Expersion
when i comment the this line the message flow works pretty good

Now i need to Set the output parameter in the message

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQSI ver 2.1 and Create procedure Statment(2)
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.