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

How to Call a DB2 Stored procedure


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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
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
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
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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts ADDRESS TSO CALL to invoke a module TSO/ISPF 7
No new posts Excuting store procedure via JCL batch JCL & VSAM 1
No new posts Executing DB2 SQL store procedure via... DB2 1
No new posts Call an hlasm from REXX in batch and ... CLIST & REXX 4
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:


Back to Top