how do we get duplicate observations in a separate dataset?

Answer Posted / rajaanku11

proc sql;
create table dup_obs as (
select * from <lib>.<dsn>
group by <dup var>,<list of other vars>
having count(*)>1 )
quit;

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you add a number to a macro variable? : sas-macro

637


What is the difference between reading data from an external file and reading data from an existing data set?

730


which date function advances a date, time or datetime value by a given interval? : Sas programming

691


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

2205


explain what is factor analysis? : Sas-administrator

688






How to convert a numeric variable to a character variable?

720


In sas, what are the areas that you are most interested in? : sas-grid-administration

725


How would you invoke a macro? : sas-macro

649


What do the mod and int function do? : Sas programming

687


Describe crosslist option in tables statement?

824


What is factor analysis?

759


What is the difference between class statement and by statement in proc means?

761


what is the difference between floor and ceil functions in sas? : Sas-administrator

807


Name and describe few sas character functions that are used for data cleaning in brief.

752


What is the use of PROC gplot?

729