How would you delete duplicate observations?

Answer Posted / ganesh

When you want elemenate duplicate values from dataset using
nodup option in the procedure sort.
When you want elemenate duplicate keys from specified
variables then use nodupkey option in the procedure sort.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sas business intelligence? : Sas-bi

811


what is sas olap server? : Sas-di

955


data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

2017


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

802


what is the difference between unique key and primary key? : Sas-di

816


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

3693


What are the best sas programming practices for handling very large datasets? : sas-grid-administration

761


what is ae onset date n what is RDS

2138


do you need to know if there are any missing values? : Sas programming

756


Name any two sas spawners? : sas-grid-administration

767


how can you create zero observation dataset? : Sas programming

869


how to debug and test the sas program? : Sas-administrator

769


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

2310


If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?

899


I need level 2 to 5 sas using companies in india

2128