It is currently 22 Nov 2017 2:33


Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 29 Jul 2015 11:29 
Offline
Nouveau
Nouveau
User avatar

Joined: 19 Jun 2013 12:00
Posts: 36
when i query for some jobs in a group i get this:

Query:
Code:
select JOBNAME as JOB,
       (
          case when STARTRUN is not null and STARTRUN <> ' '
             then substr(STARTRUN, 1, 8) || ' ' || substr(STARTRUN, 9, 2) || ':' || substr(STARTRUN, 11, 2) || ':' || substr(STARTRUN, 13, 2)
             else ''
          end
       ) as START,
       (
          case when ENDRUN is not null and STARTRUN <> ' '
             then substr(ENDRUN, 1, 8) || ' ' || substr(ENDRUN,   9, 2) || ':' || substr(ENDRUN,   11, 2) || ':' || substr(ENDRUN,   13, 2)
             else ''
          end
       ) as END,
       (
          case when STATUS = 'Y'
             then '0'
             else '1'
          end
       ) as STATUS
from   CMR_AJF
where APPLGROUP in ('MONTHLY-TABLE')
and    HOLDFLAG <> 'D'
ORDER BY END;


Results:
Code:
MONTHLY-JOB-1   20150728 19:01:22    20150728 19:01:22    0                                   
MONTHLY-JOB-2   20150728 19:01:24    20150728 19:01:53    0                                   
MONTHLY-JOB-3   20150728 19:01:54    20150728 19:01:56    0                                   
MONTHLY-JOB-4   20150728 19:01:56    20150728 19:01:58    0                                   
MONTHLY-JOB-5   20150728 19:01:57    20150728 19:01:58    0                                   
MONTHLY-JOB-6   20150728 19:01:56    20150728 19:02:03    0   


but some of these jobs end not ok so i have to execute some procedures to correct the problem and then rerun the job.

the problem is, I need the data of each time the job were executed, example:

Code:

MONTHLY-JOB-1   20150728 19:01:22    20150728 19:01:22    0                                   
MONTHLY-JOB-2   20150728 19:01:24    20150728 19:01:53    0                                   
MONTHLY-JOB-3   20150728 19:01:54    20150728 19:01:56    0                                   
MONTHLY-JOB-4   20150728 19:01:56    20150728 19:01:58    0                                   
MONTHLY-JOB-5   20150728 19:01:57    20150728 19:01:58    0                                   
MONTHLY-JOB-6   20150728 19:01:56    20150728 19:02:03    0 
MONTHLY-JOB-6   20150728 20:01:56    20150728 20:02:03    0   << this is the second time



but i just get 1 execution time for each job, is it possible to get all execution time for each job when getting these statistics?

thanks.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved