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 » Calling a specifc sybase stored procedure

Post new topic  Reply to topic
 Calling a specifc sybase stored procedure « View previous topic :: View next topic » 
Author Message
prabuk
PostPosted: Fri Mar 14, 2003 12:00 pm    Post subject: Calling a specifc sybase stored procedure Reply with quote

Novice

Joined: 14 Mar 2003
Posts: 19
Location: JerseyCity, NJ

We are having a requirement to call a stored proc which has output params defined specific to sybase, if we have to execute and get the output we should execute as follows from ISQL command line,

declare @TBuf2 varchar(255)
declare @TBufAcct2 varchar(255)
declare @TBuf1 varchar(255)
declare @TBufAcct1 varchar(255)
declare @IbeneBankBuf varchar(255)
declare @IbeneBuf varchar(255)
declare @IacctBuf varchar(255)
declare @IsubAcctBuf varchar(255)
declare @InetPayNoteBuf varchar(255)
declare @INoteBuf varchar(255)
declare @statusString varchar(255)
exec PaymentInstruction_format
null,
null,
null,
"PMASTER",
"DLR",
"NYC",
"123456",
"A",
"USD",
"20030228",
"CHSE",
"NYC",
@TBuf2 output,
@TBufAcct2 output,
@TBuf1 output,
@TBufAcct1 output,
@IbeneBankBuf output,
@IbeneBuf output,
@IacctBuf output,
@IsubAcctBuf output,
@InetPayNoteBuf output,
@INoteBuf output,
@statusString output

If you check the SQL above, before calling the stored procedure we have to declare all the output params. I guess, in PASSTHRU, we could execute statement by statement only. All above statements are supposed to be executed as a batch. How could we accomdate this in ESQL?

Thanks
Prabu
Back to top
View user's profile Send private message
kirani
PostPosted: Fri Mar 14, 2003 10:06 pm    Post subject: Reply with quote

Jedi Knight

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

Take a look at CREATE PROCEDURE statement in WMQI 2.1 CSD2 and above, it might help you.
_________________
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
prabuk
PostPosted: Mon Mar 17, 2003 9:23 am    Post subject: Reply with quote

Novice

Joined: 14 Mar 2003
Posts: 19
Location: JerseyCity, NJ

Thanks Kiran.

Do you know where I can get the detailed documentation of CREATE PROCEDURE for WMQI 2.1 CSD2 and above?

Thanks again,
Prabu
Back to top
View user's profile Send private message
kirani
PostPosted: Mon Mar 17, 2003 12:24 pm    Post subject: Reply with quote

Jedi Knight

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

WMQI ESQL Reference manual.
_________________
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 » Calling a specifc sybase stored procedure
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.