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
 

 

Executing a Stored Procedure

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

New User


Joined: 28 Dec 2005
Posts: 21

PostPosted: Mon Jan 28, 2008 6:18 pm    Post subject: Executing a Stored Procedure
Reply with quote

Hi,

I have a COBOL stored procedure. I need to debug it to determine the cause of some issues.

I added some statements to the Cobol stored proc, pre-compiled, bound and stored it in my personal dataset containing the load module.

When I run the program that calls this stored procedure, The procoedure which I compiled does not get called whereas the procedure from Endevor is called.

Can anyone suggest me a way to execute cobol stored procedures from personal datastes ?

Thanks in adavnce
Back to top
View user's profile Send private message

Peter Medina

New User


Joined: 10 Oct 2007
Posts: 3
Location: Florida

PostPosted: Tue Jan 29, 2008 11:57 pm    Post subject: Reply to: Executing a Stored Procedure
Reply with quote

The DBA must define the address space where the stored procedure runs.
This can be a DB2 address space or a Work Manager(WLM) address space.
It seems this is already done, since you mention Endevor.

So, the stored procedure in your personal library will not work. You may want to compile your program in Endevor that has the address space already defined. Don't forget, when you compile a stored procedure sometimes you or your DBA must re-cycle the address space in order to pick up the new version of your program.
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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 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 4 Thu Oct 27, 2016 10:20 am


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