Hi,
I have a set of records in a flat file like that given below:
L1 A1 O1 C1
L2 A1 O1 C1
L2 A1 O1 C1
L1 A1 O1 C2
L2 A1 O1 C2
L1 A2 O2 C3
L2 A2 O2 C3
I need to create a sorted file which has the records defined below
L1 A1 O1 C1
L2 A1 O1 C1
L2 A1 O1 C1
L2 A1 O1 C2
L1 A2 O2 C3
L2 A2 O2 C3
That is there should be only ONE L1/A1/O1/C1 combination. I know sum fields = none with sort fields defined on the above 4 fields eliminate duplicates but this elimination of duplicates should be only for the L1 duplicates and not for other records. How do I use SUM FIELDS to remove duplicates for a specific value of L1. Are there any other alternatives.
I have a set of records in a flat file like that given below:
L1 A1 O1 C1
L2 A1 O1 C1
L2 A1 O1 C1
L1 A1 O1 C2
L2 A1 O1 C2
L1 A2 O2 C3
L2 A2 O2 C3
I need to create a sorted file which has the records defined below
L1 A1 O1 C1
L2 A1 O1 C1
L2 A1 O1 C1
L2 A1 O1 C2
L1 A2 O2 C3
L2 A2 O2 C3
That is there should be only ONE L1/A1/O1/C1 combination. I know sum fields = none with sort fields defined on the above 4 fields eliminate duplicates but this elimination of duplicates should be only for the L1 duplicates and not for other records. How do I use SUM FIELDS to remove duplicates for a specific value of L1. Are there any other alternatives.