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 duplicate observations?

Answer Posted / srinivas

there 3 options to delete duplicate obs
1. nodup
2. nodupkey
3.noduprec

if a entire record is duplicated in sense we use nodup of
nodup rec in proc sort procedure.
proc sort data=dsn nodup/noduprec;
by var;
run;


if a variable is repeated not a entire record . this time
we use nodupkey

proc sort data=dsn nodupkey;
by var;
run;

ex; in a dataset empid is repeated then use this syn. and
the empid is used in by var statement.

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you put a "trace" in your program? : Sas programming

1070


How would you include common or reuse to be processed along with your statements?

2385


What is the role of administrative users? : sas-grid-administration

1084


what is function of retain statment

2043


For clinical entire study how many tables will create approx?

1976


how can you create zero observation dataset? : Sas programming

1155


sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately

3592


What is interleaving in SAS?

1122


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

1070


How does proc sql work?

1102


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

1026


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

1239


what are _numeric_ and _character_ and what do they do? : Sas programming

1163


What is the difference between the proc sql and data step?

1186


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

1623