How would you delete observations with duplicate keys?

Answer Posted / upendra

Data <datasetname>;
Set <datasetname>;
by <var>;
If last.var;
run;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by the term Normal Distribution?

709


What are pdv and it functions?

728


What is the difference between using drop = data set option in data statement and set statement?

825


What are the statements in proc sql?

717


What are the differences between sum function and using “+” operator?

740






how would you determine the number of missing or nonmissing values in computations? : Sas programming

831


What are the differences between proc means and proc summary?

755


what is factor analysis? : Sas-administrator

773


In proc transpose and data step with arrays which one you pick?

2729


how does sas handle missing values in a merge? : Sas programming

705


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.

1978


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

933


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

819


Describe the function and untility of the most difficult SAS macro that you have written.

1880


what are input dataset and output dataset options? : Sas programming

722