How would you delete observations with duplicate keys?
Answer Posted / vijay
proc sort nodupkey;by var;run;
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
what is star schema? : Sas-di
What can you learn from the SAS log when debugging?
How does the internal authentication work in sas? : sas-grid-administration
how does sas handle missing values in a merge? : Sas programming
what is the effect of the options statement errors=1? : Sas programming
what is sas olap server? : Sas-di
Tell e how how dealt with..
please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??
what are the types of interactive display types? : Sas-bi
I need level 2 to 5 sas using companies in india
State the difference between INFORMAT and FORMAT ?
what has been your most common programming mistake? : Sas programming
What do you code to create a macro? : sas-macro
Describe crosslist option in tables statement?
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.