How would you delete duplicate observations?

Answer Posted / srinivas

there 3 options to delete duplicate obs
1. nodup
2. nodupkey
3.noduprec

if a entire record is duplicated in sense we use nodup of
nodup rec in proc sort procedure.
proc sort data=dsn nodup/noduprec;
by var;
run;


if a variable is repeated not a entire record . this time
we use nodupkey

proc sort data=dsn nodupkey;
by var;
run;

ex; in a dataset empid is repeated then use this syn. and
the empid is used in by var statement.

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Briefly explain input and put function?

770


which features do you use to check the data validations and errors? : Sas-administrator

712


how does sas handle missing values in functions? : Sas programming

765


how would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable? : Sas programming

1015


What are symget and symput? : sas-macro

914






If you were told to create many records from one record, show how you would do this using array and with proc transpose?

1063


What is the role of sas grid administrator? : sas-grid-administration

1006


how does sas handle missing values in sort order? : Sas programming

664


What does the trace option do?

818


Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com

1769


What is maximum storage capability of SAS?

1032


Define run-group processing?

740


Differentiate between ceil and floor functions.

827


What are the difference between ceil and floor functions in sas?

949


What is the difference between match merge and one to one merge?

841