How would you delete duplicate observations?

Answer Posted / padmasri

In 3 ways we can delete the duplicate records.
1.procedure proc sort
in proc sort there are two ways to delete duplicate
observations:
* nodupkey
*noduprec
2.first. and last.
3.proc sql

these 3 ways we can delet the duplicate records in sas.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do the sas log messages "numeric values have been converted to character" mean? : Sas programming

547


What versions of SAS have you used (on which platforms)?

1021


what is data governance? : Sas-di

627


Mention how to limit decimal places for the variable using proc means?

647


Describe crosslist option in tables statement?

715






how do you want missing values handled? : Sas programming

538


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.

1803


what is the purpose of _error_? : Sas programming

616


how could you generate test data with no input data? : Sas programming

635


Name types of category in which SAS Informats are placed?

738


how to remove duplicates using proc sql?

634


What do the mod and int function do? : Sas programming

586


what is null hypothesis? why do you consider that?

2425


What are the functions used for character handling?

649


what is the effect of the options statement errors=1? : Sas programming

600