Page 1 of 1

Find execution count of a DB2 package or program.

Posted: Tue Mar 07, 2017 8:49 pm
by Binamra
Hi All,

How to find execution count of a DB2 package or program. Where is it stored so that we can find the number of calling of program.
If someone knows please let me know.

Thanks in Advance.

Re: Find execution count of a DB2 package or program.

Posted: Tue Mar 07, 2017 9:06 pm
by Robert Sample
Where is it stored so that we can find the number of calling of program.
Why do you think it is stored somewhere? What IBM reference material do you have that so indicates?

Re: Find execution count of a DB2 package or program.

Posted: Sat Nov 04, 2017 2:34 pm
by Binamra
Hi Robert,

That will tell us if a program is executed or not and whether or not a package is needed further.

Re: Find execution count of a DB2 package or program.

Posted: Sat Nov 04, 2017 3:20 pm
by Akatsukami
To reiterate what Mr. Sample said:
Robert Sample wrote: Tue Mar 07, 2017 9:06 pmWhy do you think it is stored somewhere? What IBM reference material do you have that so indicates?

Re: Find execution count of a DB2 package or program.

Posted: Sat Nov 04, 2017 8:19 pm
by Robert Sample
For the system as a whole, the execution count is NEVER stored anywhere. At a previous employer, I wrote a small system using COBOL, SAS and the SMF records to count program executions (for batch programs) that stored the counts in a VSAM data set. The reason this was written was because the system does not store execution counts and we needed them for a project.

So I repeat my question -- WHY do you think the system stores execution counts of a DB2 package or program?

Re: Find execution count of a DB2 package or program.

Posted: Sat Nov 04, 2017 8:39 pm
by Anuj Dhawan
This is a strange question, last execution time of a package has been of interest for some, but I can't find a rational behind it. For a second let's assume you know it, how would you use the information?

Re: Find execution count of a DB2 package or program.

Posted: Sat Nov 18, 2017 6:22 pm
by Binamra
My lead has told that if the program is not being used many times we can think to remove the program from the system.

Re: Find execution count of a DB2 package or program.

Posted: Sat Nov 18, 2017 8:22 pm
by Akatsukami
Obsoleting a program should not be done on the basis of how many times it's been run. Is your lead planning to delete the year-end processing on the theory that it's only been run a few dozen times and is therefore not very useful?

Re: Find execution count of a DB2 package or program.

Posted: Sat Nov 18, 2017 9:16 pm
by Anuj Dhawan
And what if there is an important ad-hoc process to be executed only on Holidays - should it be the first the list, per 'The Theory'?