what are methods to identify duplicate observations?

Answers were Sorted based on User's Feedback



what are methods to identify duplicate observations?..

Answer / hari prasad reddy

3 methods.
1.using proc sort
2.proc sql distinct
3.set first.var and last.var

Is This Answer Correct ?    10 Yes 1 No

what are methods to identify duplicate observations?..

Answer / ramesh sas trainar in stg

1.Proc Sort
2.Proc SQL Distinct
3.first.byvariable
4.last.byvariable
5.proc freq
6.Proc SQL unique
7.merge Statement

Is This Answer Correct ?    6 Yes 0 No

what are methods to identify duplicate observations?..

Answer / sudha ramalingam

You can also use nodupkey and noduprecs in your proc sort

Is This Answer Correct ?    3 Yes 0 No

what are methods to identify duplicate observations?..

Answer / natrajboga

you can Identify the duplicate values by using
1) sort procedure along with the dupout= and nodupkey stmt
options and followed by BY stmt.
2) use the proc sql

for example:

proc sort data=demog dupout=dup_demog nodupkey;
by subjid;
run;

proc sql;

select subjid, count(*) from demog
group by subjid
having count(*)>1;
quit;

Is This Answer Correct ?    6 Yes 4 No

what are methods to identify duplicate observations?..

Answer / rag_uss

use nodupkey,noduprecs,freq,distinct in sql

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More SAS Interview Questions

How would you code the criteria to restrict the output to be produced?

9 Answers  


Code a PROC SORT on a data set containing State, District and County as the primary variables, along with several numeric variables.

7 Answers   Accenture,


How to sort in descending order?

0 Answers  


If a variable contains letters or special characters, can it be numeric data type?

0 Answers  


Are you familiar with special input delimiters How are they used?

3 Answers  


Given an unsorted data set, how to read the last observation to a new data set?

0 Answers  


how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?

0 Answers  


What is interleaving in SAS?

0 Answers  


how do i get last 10obs from a dataset when we don't know about the number of obsevations in that dataset?

7 Answers   TCS,


1.What is the difference between _NULL_ , _ALL_, and _N_? 2.What are the uses of _NULL_ using in Data Steps? Can we _NULL_ in Proc Steps also? 3.How do call the macro variable in Data Steps? 4.How to construct Pivot tables in Excel Using SAS?

3 Answers  


What are the functions used for character handling?

0 Answers  


what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake

0 Answers   Blue Star,


Categories