How would you delete observations with duplicate keys?
Answer Posted / amit
Using a command nodupKey in Proc sort statement
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you understand by the term Normal Distribution?
What is the command used to find missing values?
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.
what is the difference between unique key and primary key? : Sas-di
What is the role of unrestrictive users? : sas-grid-administration
What areas of SAS are you most interested in?
What is the difference between SAS functions and procedures?
How to convert a numeric variable to a character variable?
hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?
What is data _null_?
What makes sas stand out to be the best over other data analytics tools?
explain the use of % includes a statement in sas? : Sas-administrator
How do you specify the number of iterations and specific condition within a single do loop?
What is the basic syntax of a sas program?
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?