Hi.
I have a very long data set where I have a number of observations for each id. In each observation there is a string variable with a procedure text - lets call it "Surgical procedure".
I want to list (display) the 3 most reoccurring "surgical procedures". In other words I want the 3 most frequently performed procedures presented as median.

Example:
id Surgical procedure
1 Procedure A
1 Procedure B
2 Procedure A
2 Procedure C
2 Procedure A
3 Procedure D
3 Procedure B
4 Procedure A
4 Procedure A
4 Procedure A
4 Procedure D
4 Procedure B
4 Procedure C

I hope this is enough info to get som help.

Thanx