Gary Raymond
September 10th, 2003, 10:16 PM
I have a report file that contains a variable set of fields for each data record. With the exception of the first line each variable is on a separate line preceded by unique keyword string.
(See the sample below. I've added a letter for the template type preceding each line to be used. Each record group is separated with dashes.)
The problem is that a field for a record that is missing a particular template will duplicate the field value from a previous record that had a valid value.
For example below, the "time to abandon" field value for the page 12 record is duplicated in the next record. And in the page 13 record the "Answered by", "Time to answer" and "Total talk time" fields are duplicated in the page 14 record. And so on...
I'm sure I am missing something basic here. Can you advise.
Thanks,
--Gary
-------------------------------------
H Internal Call on 08/25/2003
H Overview
A From: x4211
A To: x4206
A Time to abandon: 00:00:05
Details
A Start 14:37:14
14:37:14 S Started 0:00:00 4211
14:37:14 R Ringing 0:00:05 4206
A End 14:37:19
A Total Duration 0:00:05
D Page 12
--------------------------------------
H Internal Call on 08/25/2003
H Overview
A From: x4211
A To: x4289
A Answered by: x4289
A Time to answer: 00:00:02
A Total talk time: 00:00:05
Details
A Start 11:59:35
11:59:35 S Started 0:00:00 4211
11:59:35 R Ringing 0:00:02 x4289
11:59:37 C Connected 0:00:05 x4289
A End 11:59:42
A Total Duration 0:00:07
D Page 13
-------------------------------------
H Internal Call on 08/25/2003
H Overview
A From: x4211
A To: x5260
A Time to abandon: 00:00:10
Details
A Start 14:39:59
14:39:59 S Started 0:00:00 4211
14:39:59 R Ringing 0:00:10 x5260
A End 14:40:09
A Total Duration 0:00:10
D Page 14
-------------------------------------
H Internal Call on 08/25/2003
H Overview
A From: x4211
A To: x5252
A Answered by: x5252
A Time to answer: 00:00:11
A Total talk time: 00:00:00
Details
A Start 16:50:04
16:50:04 S Started 0:00:00 4211
16:50:04 R Ringing 0:00:11 x5252
16:50:15 C Connected 0:00:00 x5252
A End 16:50:15
A Total Duration 0:00:11
D Page 15
-------------------------------------
H Internal Call on 08/25/2003
H Overview
A From: x4211
A To: x5260
A Time to abandon: 00:00:13
Details
A Start 16:49:48
16:49:48 S Started 0:00:00 4211
16:49:48 R Ringing 0:00:13 x5260
A End 16:50:01
A Total Duration 0:00:13
D Page 16
-------------------------------------
(See the sample below. I've added a letter for the template type preceding each line to be used. Each record group is separated with dashes.)
The problem is that a field for a record that is missing a particular template will duplicate the field value from a previous record that had a valid value.
For example below, the "time to abandon" field value for the page 12 record is duplicated in the next record. And in the page 13 record the "Answered by", "Time to answer" and "Total talk time" fields are duplicated in the page 14 record. And so on...
I'm sure I am missing something basic here. Can you advise.
Thanks,
--Gary
-------------------------------------
H Internal Call on 08/25/2003
H Overview
A From: x4211
A To: x4206
A Time to abandon: 00:00:05
Details
A Start 14:37:14
14:37:14 S Started 0:00:00 4211
14:37:14 R Ringing 0:00:05 4206
A End 14:37:19
A Total Duration 0:00:05
D Page 12
--------------------------------------
H Internal Call on 08/25/2003
H Overview
A From: x4211
A To: x4289
A Answered by: x4289
A Time to answer: 00:00:02
A Total talk time: 00:00:05
Details
A Start 11:59:35
11:59:35 S Started 0:00:00 4211
11:59:35 R Ringing 0:00:02 x4289
11:59:37 C Connected 0:00:05 x4289
A End 11:59:42
A Total Duration 0:00:07
D Page 13
-------------------------------------
H Internal Call on 08/25/2003
H Overview
A From: x4211
A To: x5260
A Time to abandon: 00:00:10
Details
A Start 14:39:59
14:39:59 S Started 0:00:00 4211
14:39:59 R Ringing 0:00:10 x5260
A End 14:40:09
A Total Duration 0:00:10
D Page 14
-------------------------------------
H Internal Call on 08/25/2003
H Overview
A From: x4211
A To: x5252
A Answered by: x5252
A Time to answer: 00:00:11
A Total talk time: 00:00:00
Details
A Start 16:50:04
16:50:04 S Started 0:00:00 4211
16:50:04 R Ringing 0:00:11 x5252
16:50:15 C Connected 0:00:00 x5252
A End 16:50:15
A Total Duration 0:00:11
D Page 15
-------------------------------------
H Internal Call on 08/25/2003
H Overview
A From: x4211
A To: x5260
A Time to abandon: 00:00:13
Details
A Start 16:49:48
16:49:48 S Started 0:00:00 4211
16:49:48 R Ringing 0:00:13 x5260
A End 16:50:01
A Total Duration 0:00:13
D Page 16
-------------------------------------