0% found this document useful (0 votes)
92 views1 page

Identify Duplicate Names in Data

This document contains SAS code to identify duplicate records in a dataset based on name, outputting only the first occurrence, and then using PROC SQL to select and count duplicate names with a frequency greater than 1.

Uploaded by

Arijit Samanta
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views1 page

Identify Duplicate Names in Data

This document contains SAS code to identify duplicate records in a dataset based on name, outputting only the first occurrence, and then using PROC SQL to select and count duplicate names with a frequency greater than 1.

Uploaded by

Arijit Samanta
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 1

data one; set dup; by name; if first.

name<0 then output; run; proc print ; run;

proc sql; select Name, count(*) from INdata group by Name having count(*)>1; quit;

You might also like