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

need to find frequency of stored procedure being used.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Keanehelp

New User


Joined: 27 May 2008
Posts: 71
Location: USA, CA.

PostPosted: Wed May 25, 2011 12:15 pm
Reply with quote

Hi,

Can anyone please let me know, how can we find out how many times a Stored Procedure has been executed in last X days.?

Thnx
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Wed May 25, 2011 5:13 pm
Reply with quote

Hi,

You can use some DB2 Monitor tools like Insight and look for threads.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed May 25, 2011 5:16 pm
Reply with quote

it would be better always to try to reply in terms of a vanilla(*) environment

(*) no additional products, nor site specific tools
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Wed May 25, 2011 6:58 pm
Reply with quote

-DISPLAY PROC gives you some info, but not the number of executions.

If you have Displays in your stored procedure, you can count in the SYSOUT of the WLM-job (in SDSF a job possibly something like ssidWLM*)

If you have DB2 traces on , at least on Package Level , you can find it in the SMF records.

I guess the question is similar to 'how many time this package was needed?'
and the answer to that is : "Not so Easy"
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed May 25, 2011 10:35 pm
Reply with quote

SMF ?
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Thu May 26, 2011 12:53 pm
Reply with quote

PeterHolland wrote:
SMF ?

Is that a question about what SMF is, or a suggestion to look at SMF ?
just in case : en.wikipedia.org/wiki/IBM_System_Management_Facilities
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu May 26, 2011 2:43 pm
Reply with quote

icon_smile.gif - Peter must be referring to look at SMF reocrds.

have fun...icon_smile.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu May 26, 2011 2:45 pm
Reply with quote

Anuj Dhawan wrote:
icon_smile.gif - Peter must be referring to look at SMF reocrds.

have fun...icon_smile.gif


Anuj, you got it.

And have fun too.
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 To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Find a record count/numeric is multip... COBOL Programming 1
No new posts Invoke stored procedure via batch JCL. DB2 2
Search our Forums:

Back to Top