Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to Call a DB2 Stored procedure

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Mon Feb 06, 2006 5:20 pm    Post subject: How to Call a DB2 Stored procedure
Reply with quote

Hi all,

How to call a db2 stored procedure from another sored procedure


thanks
Balaji
Back to top
View user's profile Send private message

DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Feb 07, 2006 12:29 am    Post subject: Re: How to Call a DB2 Stored procedure
Reply with quote

Balaji,

Stored procedures called from another stored procedure is exactly the same as calling the stored procedure from a main program. No difference.

Dave,
Back to top
View user's profile Send private message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Tue Feb 07, 2006 9:59 am    Post subject:
Reply with quote

Hi Dave,
Can u please explaine me with some sort of code

for example i have a child stored procedure and i want to execute in the parent stored procedure then how can i code


thanks in advance,
balaji
Back to top
View user's profile Send private message
Mohan Makana

New User


Joined: 07 Feb 2006
Posts: 18

PostPosted: Tue Feb 07, 2006 12:33 pm    Post subject: Re: How to Call a DB2 Stored procedure
Reply with quote

Hi Balaji,
If you are working on DB2 Stored procedures with Cobol, then we usually mention as

Exec-Sql

Call < Store Procedure Name> <PARM>

End-Exec.

in the cobol program.
Back to top
View user's profile Send private message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Tue Feb 07, 2006 12:50 pm    Post subject:
Reply with quote

Hi Mohan,
It is working fine

any where if u want to execute a stored procedure u can use CALL


Thanks

Balaji
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us