How would you delete duplicate observations?

Answer Posted / mehul thakkar

There are two ways of deleting the records from the dataset
with the help of PROC SORT.
1. Using NODUP/NODUPRECS
2. Using NODUPKEY

The first option deletes the records only if all the
variables values are repeated in the subsequent records.

The second options deletes the records only if the value of
the BY variables given in the BY clause are repeated in the
subsequent records.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different versions of sas that you have used until now? : sas-grid-administration

738


What are the ways in which macro variables can be created in sas programming?

573


Are you involved in writing the inferential analysis plan? Tables specfications?

1748


What are the implications?

1184


what is the difference between nodup and nodupkey options? : Sas programming

625






What is the difference between where and if statement?

624


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

560


What are the statements that are executed only?

676


Which command is used to save logs in the external file?

574


what is hierarchy flattening? : Sas-di

622


describe about metadata object? : Sas-di

630


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

640


WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?

2270


what is metadata? : Sas-bi

603


what is the difference between infile and input? : Sas-administrator

615