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 difference between SAS functions and procedures?

765


Which date function advances a date, time or datetime value by a given interval?

763


what does the run statement do? : Sas programming

651


Why double trailing @@ is used in input statement?

831


Mention few capabilities of sas framework.

799






What is factor analysis?

760


how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?

2387


What is the basic structure of the SAS base program?

781


What are the automatic variables for macro? : sas-macro

765


How would you define the end of a macro?

794


What does the trace option do?

764


What are the table names in oracle database...?

2373


What is the purpose of trailing @ and @@? How do you use them?

688


What is maximum storage capability of SAS?

989


What do you know about sas data set?

687