IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to Execute a DB2 stored procedure


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rischith

New User


Joined: 24 Feb 2006
Posts: 9
Location: bangalore

PostPosted: Fri Oct 13, 2006 10:08 pm
Reply with quote

Hi All,

Can u please give me the syntax for executing a DB2 stored procedure
through a scripting language called winbatch.


Thanks n regards
Rischith
Back to top
View user's profile Send private message
Yoyoyo

New User


Joined: 19 Sep 2006
Posts: 26

PostPosted: Wed Nov 01, 2006 5:48 pm
Reply with quote

Hi rischith,

You can call an SP using the below syntax:

CALL SPname(inpara1,inpara2,inpara3,?,?,?)

inpara1,inpara2,inpara3 are the input parameters... use single quotes for char values... You need to put '?' in place of the output parameters(if any).

yoyoyo
Back to top
View user's profile Send private message
HARIBHARAT

New User


Joined: 05 Jul 2006
Posts: 65
Location: pune

PostPosted: Tue Nov 21, 2006 6:52 pm
Reply with quote

I cannot get u r soluation, give me sample program , i can easily understand.

Regards

suresh
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Fetch data from programs execute (dat... DB2 3
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
No new posts Invoke stored procedure via batch JCL. DB2 2
Search our Forums:

Back to Top