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
What is the difference between INPUT and INFILE ?
What is interleaving in SAS?
Mention sas system options to debug sas macros.
what is sas metadata server? : Sas-di
How can you create a macro variable with in data step? : sas-macro
What are the new features included in the new version of SAS Programming Language?
Mention the validation tools used in SAS?
how does sas handle missing values in a merge? : Sas programming
why is sas considered self-documenting? : Sas programming
What are SAS/ACCESS and SAS/CONNECT?
How would you include common or reuse to be processed along with your statements?
Are you involved in writing the inferential analysis plan? Tables specfications?
What is the role of sas grid administrator? : sas-grid-administration
What are the five ways to do a table lookup in sas? : sas-grid-administration
What does P-value signify about the statistical data?