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 INPUT and INFILE ?

754


What is interleaving in SAS?

676


Mention sas system options to debug sas macros.

663


what is sas metadata server? : Sas-di

595


How can you create a macro variable with in data step? : sas-macro

578






What are the new features included in the new version of SAS Programming Language?

740


Mention the validation tools used in SAS?

658


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

557


why is sas considered self-documenting? : Sas programming

682


What are SAS/ACCESS and SAS/CONNECT?

636


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

1903


Are you involved in writing the inferential analysis plan? Tables specfications?

2114


What is the role of sas grid administrator? : sas-grid-administration

830


What are the five ways to do a table lookup in sas? : sas-grid-administration

599


What does P-value signify about the statistical data?

856