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

Trailer count of date and time


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
evanswillo

New User


Joined: 28 Jun 2007
Posts: 23
Location: Bmth England

PostPosted: Tue Feb 24, 2009 10:17 pm
Reply with quote

I have a report that run 07:00 through to 07:00 the next day.
I need to know how may jobs ran each hour of each day.
I have a job that works for a single day 00:00 - 23:39, but I am unable to produce trailer counts for each hour of each day.

DSN

aaaa 02/23/09 07:00:00
aaaa 02/23/09 07:00:00
aaaa 02/23/09 07:00:05
bbbb 02/23/09 08:00:00
....
....
....
bbbb 02/24/09 07:00:00
ccccc 02/24/09 08:00:00
ccccc3 02/24/09 08:00:00
.....
.....
Back to top
View user's profile Send private message
evanswillo

New User


Joined: 28 Jun 2007
Posts: 23
Location: Bmth England

PostPosted: Tue Feb 24, 2009 10:25 pm
Reply with quote

no problem sorted thanks
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Feb 25, 2009 12:06 am
Reply with quote

evanswillo,

If you still want a report irrespective of the date and time here is job which would give you hourly report

Code:

//STEP0100 EXEC PGM=SORT                                 
//SYSOUT   DD SYSOUT=*                                   
//SORTIN   DD *                                           
AAAA 02/23/09 07:00:00                                   
AAAA 02/23/09 07:00:00                                   
AAAA 02/23/09 07:00:05                                   
BBBB 02/23/09 08:00:00                                   
BBBB 02/24/09 01:06:00                                   
BBBB 02/24/09 01:10:10                                   
BBBB 02/24/09 03:01:00                                   
//SORTOUT  DD SYSOUT=*                                   
//SYSIN    DD *                                           
 INREC OVERLAY=(81:6,8,UFF,ZD,LENGTH=6,81,6,Y2W(/),15,2) 
 SORT FIELDS=(87,10,CH,A)                                 
 OUTFIL REMOVECC,NODETAIL,BUILD=(80X),                   
 SECTIONS=(87,12,                                         
 TRAILER3=(' NO: OF JOBS RAN ON ',87,10,                 
           ' BETWEEN  ',97,2,':00 AND ',97,2,':59 ARE : ',
 COUNT=(M10,LENGTH=8)))                                   
/*


This would produce

Code:

 NO: OF JOBS RAN ON 02/23/2009 BETWEEN  07:00 AND 07:59 ARE :        3
 NO: OF JOBS RAN ON 02/23/2009 BETWEEN  08:00 AND 08:59 ARE :        1
 NO: OF JOBS RAN ON 02/24/2009 BETWEEN  01:00 AND 01:59 ARE :        2
 NO: OF JOBS RAN ON 02/24/2009 BETWEEN  03:00 AND 03:59 ARE :        1


If you want to limit the reporting to just the last 24 hours of data then change the following statement in your job
Code:

OUTFIL REMOVECC,NODETAIL,BUILD=(80X),


to
Code:

OUTFIL REMOVECC,NODETAIL,BUILD=(80X),
INCLUDE=(81,6,Y2W,GE,Y'DATE1'-1),
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts To get the the current time DFSORT/ICETOOL 13
Search our Forums:

Back to Top