Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Trailer count of date and time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Trailer count of date and time
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    Post subject: Reply to: Trailer count of date and time
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    Post subject: Reply to: Trailer count of date and time
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 3 Sat May 06, 2017 12:59 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us