Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us