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

What commands are used in the case of including or excluding any specific variables in the data set?

828


What are common programming errors committed in sas

892


What is the maximum and minimum length of macro variable

908


explain what is factor analysis? : Sas-administrator

813


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

767


Can you suggest us materials for sdtm mapping?

4240


What is run-group processing?

861


What are the advantages of using sas?

854


what is the use of sas management console? : Sas-di

804


What is by-group processing?

749


Describe 5 ways to do a “table lookup” in SAS?

878


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

791


What would be the value of month at the end of data step execution and how many observations would be there?

791


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

2180


Why and when do you use proc sql?

961