MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Db2 Stored Proc Builder Query

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
vini
Intermediate


Joined: 12 Jan 2004
Posts: 240
Topics: 48
Location: Maryland

PostPosted: Wed Mar 24, 2004 11:38 am    Post subject: Db2 Stored Proc Builder Query Reply with quote

How does one come to know that to which Load Library the Stored Proc is pointing to , when in IBMs Db2 Stored Proc Builder ?! Apparently , I do not see it anywhere in the menu options atleast.
Anyone familiar with this Tool ?
I am trying to test changes to a stored proc ,but encountering -805. I have successfully compiled and binded in the region I wanna test it in.
I asked the DBA here , but havent got any answer from his so far Wink
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Wed Mar 24, 2004 11:59 am    Post subject: Reply with quote

Vini,

Looking at the sqlcode of -805 , it has got something to do with the Bind.The DB2 stored procedure address space may still have the last copy of your program. I guess you made some changes to the stored procedure and complied it.But your latest copy is not found in the DB2 Address space.

I guess your stored procedure is defined with stay resident option which will keep a stored proc in memory

Change your stored procedure definition to stay resident = n and your changes will be reflected automatically.

Check this link which explains in detail about Refreshing the stored procedures environment

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vini
Intermediate


Joined: 12 Jan 2004
Posts: 240
Topics: 48
Location: Maryland

PostPosted: Wed Mar 24, 2004 2:13 pm    Post subject: Reply with quote

Kolusu , Appreciate your response . Guess what ? According to the DBA it has already been defined as stayresident=n . As a developer am not authorised to modify any stored proc definitions in db2. I was wondering if there is atleast someway for me to View that? Any system table which keeps this kinda info or any info around stored procs ? All I have access to is the stored procs cobol code.
Back to top
View user's profile Send private message
Anand_R
Intermediate


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Thu Mar 25, 2004 12:05 pm    Post subject: Reply with quote

Vini,

In DB2 v6 , once you bind the stored procedure, the information will be stored sysibm.systrigger and before V6 it would be in sysibm.sysprocedures.

Thanks
Anand
Back to top
View user's profile Send private message
vini
Intermediate


Joined: 12 Jan 2004
Posts: 240
Topics: 48
Location: Maryland

PostPosted: Thu Mar 25, 2004 4:49 pm    Post subject: Reply with quote

This problem was finally resolved by the DBAs. It had something to do with WLM refreshing ,they said Rolling Eyes and the more I asked their jargon got more n more obscure Wink

Anand, I did not find any stored proc related info in the 2 tables that you mentioned. I think it is the sysibm.sysroutines.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group