How would you delete duplicate observations?

Answer Posted / ananth

nodupkey option in proc sort statement.

Or use first.byvaribale or last.byvariable in data step.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks

1800


Give some examples where proc report’s defaults are same as proc print’s defaults?

643


how to do user inputs and command line arguments in sas?

2428


How are numeric and character missing values represented internally?

1138


What is the differnce between SDTM 3.1.2 to 3.1.1 version

4609






What areas of SAS are you most interested in?

1062


What are the scrubbing procedures in sas?

573


What do the SAS log messages "numeric values have been converted to character" mean?

890


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.

1801


name the scheduler for scheduling job and explain the scheduler? : Sas-di

594


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

584


What are the data types that sas contain?

655


How do you control the number of observations and/or variables read or written?

749


what are informats in sas? : Sas-administrator

588


What are the five ways to do a table lookup in sas? : sas-grid-administration

597