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

Executing a Stored Procedure


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

 


Similar Topics
Topic Forum Replies
No new posts executing XCTL command in COBOL witho... CICS 10
No new posts Receiving RC 5 when executing REXX pr... CLIST & REXX 3
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Issues with executing a REXX MACRO th... TSO/ISPF 4
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
Search our Forums:

Back to Top