Thank you very much for your assistance.
However, my main objective is not simply eliminating the duplicate records. On the contrary, what I am trying to do is to draw all possible pairs of records among the 24,000 records and then conduct any checking in respect of selected fields so as to determine any duplicate fields between two different records.
To be specific, perhaps I may use an example for illustration. As I said before, there are totally 24,000 records collected from a surveys with totall 10 fields. Among the 10 fields, one of them is a unique reference key for identification of each person (record). In order to determine any cheating that some interviewers may duplicate the answers for the remaining 9 fields from one record to other records, I intend to make use of SAS to draw all possible pairs from the 24,000 records and check whether there is any occurrence of cheating. Hence, I wonder whether there are any SAS codes which allow me to draw pairs of samples iteratively.