how to display duplicated observations in a data using base
sas.
Answer Posted / suresh babu prattipati
hi,
to display the dups in seperate dataset please find the
below program.
eg:
data dups;
input var1;
1
2
3
4
4
3
5
6
;
run;
/*to find the dups*/
data dups1;
set dups;
by var1;
if not(first.var1 and last.var1) then output;
run;
*now you can see the dups ;
If any one have any sas question please e.mail me to
suresh.sasv9@gmail.com
thanks
suresh
| Is This Answer Correct ? | 5 Yes | 9 No |
Post New Answer View All Answers
What is the use of divide function?
what are _numeric_ and _character_ and what do they do? : Sas programming
What is a put statement?
what are several options for creating reports in web report studio? : Sas-bi
What are the special input delimiters used in SAS?
what are the component of range? : Sas-bi
what is transformation in sas data integration? : Sas-di
Define run-group processing?
What are the different servers in sas? : sas-grid-administration
How do you add a number to a macro variable? : sas-macro
what is SAS OPTIMIZATION?
describe about metadata object? : Sas-di
name some data transformation used in sas di? : Sas-di
What makes sas stand out to be the best over other data analytics tools?
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?