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

Did you used proc test? when?

2088


what is business intelligence? : Sas-bi

1108


To what type of programms have you used scratch macros?

2609


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

1110


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

4593


How does proc sql work?

1147


How would you identify a macro variable?

1138


Describe crosslist option in tables statement?

1265


How will you generate test data with no input data?

1232


what are 5 ways to perform a table lookup in sas? : Sas-administrator

1296


how does sas handle missing values in a merge? : Sas programming

1100


explain the main difference between the nodup and nodupkey options? : Sas-administrator

1221


what is change analysis in sas di ? : Sas-di

1113


What is the use of divide function?

1120


What are the data types that sas contain?

1249