Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How would you delete observations with duplicate keys?

Answer Posted / sastechies

2 ways

1.Proc Sort with Dupkey and Noduprecs options
2.Datastep using a combination of first.var and last.var
variables...

However one common mistake one might do with Proc Sort
NoDup here is that missing all the variables in the By
statement..

Read here...
http://sastechies.blogspot.com/2009/12/common-programming-
mistake-with-proc.html

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is hash files in sas and why we are using this one in sas?

2267


What would be the value of month at the end of data step execution and how many observations would be there?

1228


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

2509


What is your favorite all time computer book? Why?

2555


how the sas basic syntax style described? : Sas-administrator

1061


What is the work of tranwrd function?

1295


Describe the ways in which you can create a macro variable?

1128


what is treatment emergent events and treatment emregent adverse event

2448


what is sas metadata repository? : Sas-bi

1171


Explain input and put function?

1184


How to sort in descending order?

1298


Name types of category in which SAS Informats are placed?

1196


How would you invoke a macro? : sas-macro

1183


what is the function of catx syntax? : Sas-administrator

1152


Differentiate between ceil and floor functions.

1197