How would you delete observations with duplicate keys?

Answers were Sorted based on User's Feedback



How would you delete observations with duplicate keys?..

Answer / nishant

Use nodupkey option in proc sort

Is This Answer Correct ?    6 Yes 1 No

How would you delete observations with duplicate keys?..

Answer / ganesh

use nodupkey in proc sort automatically the duplicate key
going to delete.

Is This Answer Correct ?    2 Yes 0 No

How would you delete observations with duplicate keys?..

Answer / ganesh

we can delete the observation by using NODUP.

proc sort data=name nodup;
by varname;
run;

Is This Answer Correct ?    2 Yes 0 No

How would you delete observations with duplicate keys?..

Answer / haritha

In data step first dot variable and last dot variable use
to delete the duplicate values.
by using no dup we delete the duplicate values in row wise
and no dup key is used to delete the duplicate values in
column wise it means observation
and distinct is use to delete the duplicate values in proc
sql

Is This Answer Correct ?    3 Yes 1 No

How would you delete observations with duplicate keys?..

Answer / chirag patel

using Nodup you can delete duplicate observation

Is This Answer Correct ?    4 Yes 3 No

How would you delete observations with duplicate keys?..

Answer / roopanwita

There is stage called Remove Duplicate to delete duplicate
record and also Sort stage do same funtion.Otherwise if
source databse is a table,then in source SQL we can select
distinct value.

Is This Answer Correct ?    1 Yes 0 No

How would you delete observations with duplicate keys?..

Answer / prakash

nodupkey

Is This Answer Correct ?    1 Yes 0 No

How would you delete observations with duplicate keys?..

Answer / thirumalesh

NoDupKey is to delete duplicate observations based on by variables as a key variable, Noduprecs is to delete multiple observations with same values(repeated values).

also it can be done using proc sql,
and using fist and last statements in if condiotion.

Is This Answer Correct ?    1 Yes 0 No

How would you delete observations with duplicate keys?..

Answer / satish

using nodupkey

Is This Answer Correct ?    2 Yes 2 No

How would you delete observations with duplicate keys?..

Answer / tangyoulei

or distinct in proc sql

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More SAS Interview Questions

What is the sas data set? : sas-grid-administration

0 Answers  


How to create list output for cross-tabulations in proc freq?

0 Answers  


What do you feel about hardcoding?

3 Answers   Pfizer,


Explain translate function?

0 Answers  


what is the difference between the SAS v8 and SAS v9?

7 Answers   TCS,






How would you define the end of a macro?

0 Answers  


What makes sas stand out to be the best over other data analytics tools?

0 Answers  


how to change the execute of macro

0 Answers   Mind Tree,


What is difference between N and n????

2 Answers   Sciformix,


what are 5 ways to perform a table lookup in sas? : Sas-administrator

0 Answers  


Which date functions advances a date time or date/time value by agiven interval?

3 Answers  


How would you identify a macro variable? : sas-macro

0 Answers  


Categories