How to write duplicate records into a separate dataset using
sort?

Answers were Sorted based on User's Feedback



How to write duplicate records into a separate dataset using sort?..

Answer / guest

Dupout option

Is This Answer Correct ?    27 Yes 1 No

How to write duplicate records into a separate dataset using sort?..

Answer / vimal

PROC SORT DATA=data_a DUPOUT=dup_data
NODUPKEY
OUT=nodup_data;
BY x;
RUN;

Is This Answer Correct ?    4 Yes 0 No

How to write duplicate records into a separate dataset using sort?..

Answer / yam

First sort the data set by the key variable and then

data dup;
set indata1;
if not(first.keyvar) then output dup;
run;

Is This Answer Correct ?    4 Yes 2 No

How to write duplicate records into a separate dataset using sort?..

Answer / charan araveti

if u dont want to use DUPOUT,hear is some code:

data dup(drpo temp_id);
set ds1;
retain temp_id;
if temp_id ne id then
output;
temp_id=id;

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More SAS Interview Questions

How do you delete duplicate observations in sas?

0 Answers  


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

0 Answers  


How does the internal authentication work in sas? : sas-grid-administration

0 Answers  


Name statements that are execution only.

4 Answers  


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

6 Answers   Accenture,


explain about data integrator metadata reports? : Sas-di

0 Answers  


explain the concepts and capabilities of business object? : Sas-bi

0 Answers  


How to import the Zip files into SAS? If it is possible in SAS? If it is posible write the code...

7 Answers  


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable?

3 Answers  


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

0 Answers  


What is SAS Information Map Studio and its purpose ?

2 Answers   SAS, TCS,


What is Linear Regression?

0 Answers  


Categories