How would you delete observations with duplicate keys?

Answer Posted / rohit

You can also use a Proc SQL statement with a Distinct
keyword.

Proc Sql;
Select Distinct tablename.* from tablename;
Quit;

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

704


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

783


What is the work of tranwrd function?

764


What is the basic structure of a sas program?

690


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

1675






Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1556


How do dates work in sas?

738


What are the functions used for character handling?

746


What is the maximum length of the macro variable? : sas-macro

727


what are the best practices to process the large data sets in sas programming? : Sas-administrator

634


Explain bmdp procedure?

710


Can you explain the process of calendar?

739


what techniques and/or procs do you use for tables? : Sas programming

666


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

775


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

809