I want to reformat one report. My report is Fixed block and record length of 132. Below is the input record layout.
JOB START DATE START TIME END DATE END TIME
[color=#FF0000]PBRD1000
10/02/2011 10:00:00 10/02/2011 10:30:00
PBRD1000
[/color]
PBRD2000
10/02/2011 23:00:00 11/02/2011 00:30:00
PBRD2000
PBRD3000
11/02/2011 01:00:00 11/02/2011 01.30:00
PBRD3000
PBRD4000
11/02/2011 01:40:00 11/02/2011 01:45:00
PBRD4000
[color=#FF0000]PBRD1000
10/02/2011 10:00:00 10/02/2011 10:30:00
PBRD1000
[/color]
PBRD2000
10/02/2011 23:00:00 11/02/2011 00:30:00
PBRD2000
PBRD3000
11/02/2011 01:00:00 11/02/2011 01.30:00
PBRD3000
PBRD4000
11/02/2011 01:40:00 11/02/2011 01:45:00
PBRD4000
I want to reformat my report. The reformatter job will run thrice in a day. It will check for Current date and time and report those JOB names and it's details which ran in between 8 Hours range. In the above scenario, suppose my Reformatter job ran at 2AM, the following will be the output. It will exclude the PBRD1000 run details. Also, put the job name and it's detail in oneline.
PBRD2000 10/02/2011 23:00:00 11/02/2011 00:30:00
PBRD3000 11/02/2011 01:00:00 11/02/2011 01.30:00
PBRD4000 11/02/2011 01:40:00 11/02/2011 01:45:00
PBRD3000 11/02/2011 01:00:00 11/02/2011 01.30:00
PBRD4000 11/02/2011 01:40:00 11/02/2011 01:45:00