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 to display duplicated observations in a data using base
sas.

Answer Posted / m.sivakumar

data dups;
input var1;
datalines;
1
2
3
4
4
3
5
6
;
run;
proc sort data=dups;
by var1;
run;
data dups1;
set dups;
by var1;
if not(first.var1 and last.var1) then output;
run;
proc print data=dups;
run;
proc print data=dups1;
run;

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is by-group processing?

991


How do you test for missing values?

1624


What sas features do you use to check errors and data validation?

1209


for what purpose would you use the retain statement? : Sas programming

1080


How are numeric and character missing values represented internally?

1651


what are the types of interactive display types? : Sas-bi

1084


Can you execute a macro within a macro? Describe. : sas-macro

1103


If a variable contains only numbers, can it be a character data type?

1072


what are the scrubbing procedures in sas? : Sas programming

1276


Do you know the features of sas?

1037


Name and describe few sas character functions that are used for data cleaning in brief.

1114


What is connection profile? : sas-grid-administration

1158


What does the RUN statement do?

1297


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

1087


What are common programming errors committed in sas

1137