How would you delete duplicate observations?

Answer Posted / prr

In Proc sort:
NoDupkey: TO delete duplicate observations based on By variable.
NoDuprecs: It looksup complete observation and delete
duplicate observations.
Nodup: it is a sas key word tells to sas, to delete
duplicate observations and keep only first one.

in Data step: First. and Last.

In Proc sql: Distinct Clause.
Process of SQL: 1.Select
2.group by
3.having
4.distinct
5.order by

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of output statement in a SAS Program?

799


explain what is factor analysis? : Sas-administrator

804


Define run-group processing?

783


Explain what is the use of proc gplot?

911


What is program data vector (pdv)?

834


What is the work of tranwrd function?

932


If money were no object, what would you like to do?

2893


what is change analysis in sas di ? : Sas-di

781


In SAS explain which statement does not perform automatic conversions in comparisons?

1059


What do the put and input function do?

772


What is program data vector (pdv) and what are its functions?

820


Of all your work, where have you been the most successful?

4410


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

1357


Where do you use proc means over proc freq?

751


What is the general format of function in sas? : sas-grid-administration

759