When I run a query for a job, it returns several lines of data, most of which I am not interested in. I would like to create a script to simplify the output below onto one line.
Date: 08/27/03 Object: TJOB Page 1
Jobset: aetrddly
Job: etrcheck
Jno: 0001 Qualifier: 2701
Station: gsc-fin Original Station: gsc-fin
Description: Asap: Tuesatwo: Script to check ETR Prod Batch
Run Status: COMPL Calendar: everyday Job PID: 00028607
Actual Node: gsc-fin
Actual Queue: a Cyclic Job: No Cycle Freqency: 60 Cycle Count: 0
Anycpu: No Autosel: Yes Backlog: Yes
Priority: 1 History: 0010 Hold: No Interruptible: No
Job Type: CPU Autostart: No Userenv: Yes
Abend Action: ABORT
Abort Count: Failcond: ( +0001 , +9999 )
Scheduled: 08/27/2003 00:00:51.00 Available: 08/27/2003 03:30:03.00
0 ( 24, 10) FDX
Early: 08/27/2003 03:30:00.00 Max. Time:
Must Start: Must Comp.:
Start: 08/27/2003 03:30:05.00 End: 08/27/2003 03:30:12.00
CPU Time: 00:00:01.52 Average Time: 00:00:07.00 High RC: 00000000
Users:
Cancel: Demand:
End: Hold:
Release: Start:
Update: lfl0 Submit:
Force:
###################################################
I tried using the command:
egrep '^ Start:|Jobset|Status|^ Job:'
Which gives me the data I want, but I'm not sure how I should go about using awk to create the columns I would like.
Jobset: aetrddly
Job: etrcheck
Run Status: COMPL Calendar: everyday Job PID: 00028607
Start: 08/27/2003 03:30:05.00 End: 08/27/2003 03:30:12.00
Ideally I would like the output to display as follows:
Jobset Job Start Date Start Time End Date End Time Status
============================================================
abcd a1 08/27/2003 08:45 08/27/2003 08:47 COMPL
Does anyone have any ideas as to how I can accomplish this? Any help would be greatly appreciated.
Thanks,
John
Date: 08/27/03 Object: TJOB Page 1
Jobset: aetrddly
Job: etrcheck
Jno: 0001 Qualifier: 2701
Station: gsc-fin Original Station: gsc-fin
Description: Asap: Tuesatwo: Script to check ETR Prod Batch
Run Status: COMPL Calendar: everyday Job PID: 00028607
Actual Node: gsc-fin
Actual Queue: a Cyclic Job: No Cycle Freqency: 60 Cycle Count: 0
Anycpu: No Autosel: Yes Backlog: Yes
Priority: 1 History: 0010 Hold: No Interruptible: No
Job Type: CPU Autostart: No Userenv: Yes
Abend Action: ABORT
Abort Count: Failcond: ( +0001 , +9999 )
Scheduled: 08/27/2003 00:00:51.00 Available: 08/27/2003 03:30:03.00
0 ( 24, 10) FDX
Early: 08/27/2003 03:30:00.00 Max. Time:
Must Start: Must Comp.:
Start: 08/27/2003 03:30:05.00 End: 08/27/2003 03:30:12.00
CPU Time: 00:00:01.52 Average Time: 00:00:07.00 High RC: 00000000
Users:
Cancel: Demand:
End: Hold:
Release: Start:
Update: lfl0 Submit:
Force:
###################################################
I tried using the command:
egrep '^ Start:|Jobset|Status|^ Job:'
Which gives me the data I want, but I'm not sure how I should go about using awk to create the columns I would like.
Jobset: aetrddly
Job: etrcheck
Run Status: COMPL Calendar: everyday Job PID: 00028607
Start: 08/27/2003 03:30:05.00 End: 08/27/2003 03:30:12.00
Ideally I would like the output to display as follows:
Jobset Job Start Date Start Time End Date End Time Status
============================================================
abcd a1 08/27/2003 08:45 08/27/2003 08:47 COMPL
Does anyone have any ideas as to how I can accomplish this? Any help would be greatly appreciated.
Thanks,
John