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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Batch call online program, EXCI task ... CICS 3
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
No new posts Invoke stored procedure via batch JCL. DB2 2
Search our Forums:

Back to Top