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 

Stored Procedure

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


Joined: 28 May 2003
Posts: 51
Topics: 30

PostPosted: Thu Oct 09, 2003 1:12 am    Post subject: Stored Procedure Reply with quote

We are exploring the ways the calls to the various SPs could be logged in a centralized place. The details to be logged are
a. Name of the SP
b. Start time of the SP
c. End-time of the Sp
d. Input parameters passed to the SP
e. Output parameters passed by the Sp

Please note that the WLMs/SPAs(Work load Mgr/SP Address Space) runs in different LPARs.

Is there any DB2 utility that will perform this function or any other way.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Oct 09, 2003 5:00 am    Post subject: Reply with quote

vani,

Are the different LPARS inter-connected via DB2's Distributed Request Data Access architecture?? If they are then you can create a simple DB2 table in one of the LPARS and insert the data when ever the stored procedure is execueted.

check this topic which discusses about Accessing tables in different DB2 sub-systems
http://www.mvsforums.com/helpboards/viewtopic.php?t=67

If the LPARS are not inter-connected , then I don't think there is a way to accumulate the data in a centralized location

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vani
Beginner


Joined: 28 May 2003
Posts: 51
Topics: 30

PostPosted: Thu Oct 09, 2003 12:00 pm    Post subject: Reply with quote

SQL CALL failed due to SQLCODE = -991
rc1=000c
rc2=00F30006

Iam issuing a CONNECT before the CALL to the stored procedure but it is failing with the above error.

Please tell us how to compile, link-edit, bind and run the stored procedure.


Regards,
Vani
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Oct 09, 2003 2:25 pm    Post subject: Reply with quote

vani,

From the RC2=00F30006, it is evident that the 'Subsystem Name' was not found during connection processing. Make sure that you have the correct DB2 subsystem name.

Check this link for a detailed explanation on rc2 of 00F30006 http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNMCH11/4.26.6?SHELF=&DT=20010718150520

Now for the sqlcode of -991

For stored procedures running in the WLM-established stored procedure address space the application must be link-edited with or dynamically allocate the RRS attachment language interface module (DSNRLI), not CAF.

Any way check this link for a detailed explanation of sql code -991

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNMCH11/2.1.6.432?SHELF=&DT=20010718150520


Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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