How would you delete duplicate observations?

Answer Posted / thirumalesh.e.

We can delete using Proc NoDupkey NoDuprecs and
NoDuplicates, then by Dupsort system option, then
if.first . last, Proc sql, create by select * unique ...

OK.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1329


I have a dataset concat having variable a b & c. How to rename a b to e & f?

670


I need level 2 to 5 sas using companies in india

2020


how many types prompting framework can be broken down to? : Sas-bi

734


What are the statements that are executed only?

774






How to limit decimal places for variable using proc means?

689


what is slowly changing dimension? : Sas-di

733


how do you pull data from equifax?tell me the process?

1466


For clinical entire study how many tables will create approx?

1615


what is sas metadata server? : Sas-di

688


What do you understand by the term Normal Distribution?

668


What would be the value of month at the end of data step execution and how many observations would be there?

674


Describe a time when you were really stuck on a problem and how you solved it?

2287


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.

1914


What is the difference between INPUT and INFILE ?

863