I'm trying to parse information from a fax log file that has 49 tab delimited field columns.
here is an example of what the text file contains:
Note: due to the length of each line, I'm showing only partial line information.
Also, the first line is column names.
"JobID" "ParentJobID" "SubmissionTime" "Scheduled" "Status" "ErrorDesc"
"0x0.." "0x2.." 7/20/2012 12:52:56 7/20/2012 12:52:56 "Completed" "Call completed"
"0x0.." "0x2.." 7/20/2012 14:55:09 7/20/2012 14:55:09 "Transmission error" "Busy"
"0x0.." "0x2.." 7/24/2012 10:07:12 7/24/2012 10:07:12 "Transmission error" "No dial tone"
etc...
I'm trying to get an output to an HTML file that shows only rows where <> "Call Completed".
Also, there are several columns I dont need (like JobID, ParentJobID and some further down the row), therefore want to be able to parse out only required columns. Another issue I'm running into is some fields are empty and I can't get past those in any code I try.
Is there a way to parse only the columns I need and ignore those that are empty?
I would appreciate any advise.
here is an example of what the text file contains:
Note: due to the length of each line, I'm showing only partial line information.
Also, the first line is column names.
"JobID" "ParentJobID" "SubmissionTime" "Scheduled" "Status" "ErrorDesc"
"0x0.." "0x2.." 7/20/2012 12:52:56 7/20/2012 12:52:56 "Completed" "Call completed"
"0x0.." "0x2.." 7/20/2012 14:55:09 7/20/2012 14:55:09 "Transmission error" "Busy"
"0x0.." "0x2.." 7/24/2012 10:07:12 7/24/2012 10:07:12 "Transmission error" "No dial tone"
etc...
I'm trying to get an output to an HTML file that shows only rows where <> "Call Completed".
Also, there are several columns I dont need (like JobID, ParentJobID and some further down the row), therefore want to be able to parse out only required columns. Another issue I'm running into is some fields are empty and I can't get past those in any code I try.
Is there a way to parse only the columns I need and ignore those that are empty?
I would appreciate any advise.