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 using CALL PLIRETC(somevalu) Pedro PL/I & Assembler 1 Wed May 09, 2018 10:25 pm
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts Handling result sets in the calling N... Rusikesh DB2 7 Fri Apr 13, 2018 12:25 am
No new posts Print call stack in Mainframe C DIPANKAR SAHA ABENDS & Debugging 2 Thu Mar 15, 2018 2:58 pm
No new posts CICS web service from DB2 Triggers or... kiranprasad DB2 2 Wed Dec 20, 2017 11:10 am

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