473,322 Members | 1,494 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

URGENT SQL help

SKC
Hi

I have already specnt many hrs in getting these resultsets but no
success....can anyone help me out please?

I need urgent help to retrive the data in the following format:

Table 1 :

Col1 : PACKAGE --> PACKAGE NAME
Col2 : START_TIME (TIMESTAMP) --> START TIME
Col3 : END_TIME (TIMESTAMP) --> END TIME

NOTE : Each package will be called many times during an interval.

Table 2 : SYSCAT.PROCEDURE (to extract procedure name)

Expected Results:
==================
Result 1:
---------
PROCNAME, PACKAGENAME, SUM_OF_EXECUTION_TIME, TOTAL_NO_EXECUTIONS.

for every 10 minutes OR 5 minutes OR n minutes given a time interval
like "BETWEEN 10 AM AND 12 NOON).

Result 2:
---------

Same as above but for WHOLE duration....ONE result set (NOT for every
10 mins or 5 mins etc..).

Result 3:
---------

PACKAGE EXECUTION TIME FOR EVERY 10mins OR 5 Mins OR every 'n' minutes
like bellow:

PROCNAME, PACKAGE, 10MIN, 20MIN, 30MIN, 40MIN, 50MIN, 60MIN, 70MIN,
80MIN

Result 4:
---------

Same as Result 3 but for NO. OF EXECUTIONS for every 10
mins/5mins/nmins...

Thanks in advance...
Nov 12 '05 #1
2 1222
Looks like you want to take a look at the statement event monitor.
Check out my recent articles on developerWorks/DB2.
Especially the SQL PL Profiler mines the event monitor output and can
serve you as a guide.

Cheers
Serge
Nov 12 '05 #2
SKC
Serge Rielau,

Thanks for your suggestion. I read your article and found that it is
usefull for version 8 & STINGER.

I am using version 7.2.

Presently, I am getting this report using shellscript. I am interested
to know the better way of extracting these reports especially using
SQL.
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Stefan Bauer | last post by:
Hi NG, we've got a very urgent problem... :( We are importing data with the LOAD utility. The input DATE field data is in the format DDMMYYYY (for days) and MMYYYY (for months). The target...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
2
by: Dimitri | last post by:
PLEASE HELP,I HAVE A DATABSE WITH MULTIPLE RECORDS AS OUTLINED BELOW EMP NO LEVEL NEXTINCREASE WAGETYPE UNIT 1000 1 0 1000 1000 1 0 1002 ...
8
by: Tim::.. | last post by:
Can someone please tell me why I keep getting the following error for some of my web application users but not others??? Even though the application runs from a central webserver??? Thanks for...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
7
by: zeyais | last post by:
Here is my HTML: <style> ..leftcolumn{float:left;width:300px;border: 1px solid #ccc} ..rtcolumn{float:left;width:600px;border: 1px solid #ccc} </style> <body> <div class="leftcolumn"...
33
by: dembla | last post by:
Hey Frnds can anyone help me in this i need a program in 'c' PROGRAM to print NxN Matrix 9 1 8 1 2 3 2 7 3 as 4 5 6 6 4 5 7 8 9 in sorted form
8
by: ginnisharma1 | last post by:
Hi All, I am very new to C language and I got really big assignment in my work.I am wondering if anyone can help me.........I need to port compiler from unix to windows and compiler is written...
17
by: Saps | last post by:
Hi all. Can anyone help me here. I have loads of .sql files and i need a way to call these from my asp page so the user can run them from the browser. Meaning i have a page with a list of all...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.