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 the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

1145


What are the statements in proc sql?

1107


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

1092


How sas treats the dsd delimiters?

1219


What is the general format of function in sas? : sas-grid-administration

977


what is factor analysis? : Sas-administrator

1107


what are the benefits of data integration? : Sas-di

1111


what is metadata? : Sas-bi

1036


Explain input and put function?

1147


Define run-group processing?

1047


What is the length assigned to the target variable by the scan function?

1163


Mention sas system options to debug sas macros.

1180


Differences between where and if statement?

1099


How to create an external dataset with sas code?

1165


how many display types available in sas bi dashboard? : Sas-bi

1089