01 JOCKEY-NAME-ARRAY.
02 JOCKEY-NAME OCCURS 100 TIMES PIC X(20).
02 JOCKEY-NAME OCCURS 100 TIMES PIC X(20).
It contains names of jockeys who participated in races. Some names occur several times. How do I find out which name(s) occur(s) the most number of times? I have an idea but it is too clumsy. Go through the array and move all individual names to individual arrays, then calculate and then compare the number of occurrences. I don't think I can use control break processing because the array is not sorted sequentially. Anyone has any ideas?