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

what has been your most common programming mistake? : Sas programming

1 Answers  


What sas features do you use to check errors and data validation?

1 Answers  


What is difference between sas rename and lable?

4 Answers  


Write SAS codes to compare two datasets. Suppose the allowable difference is 0.1.

2 Answers  


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

1 Answers  


What is proc sort?

1 Answers  


what is the main difference between rename and label? (don't say that they both perform the same function).

11 Answers   Parexel,


Which command is used to perform sorting in sas program?

1 Answers  


What is the basic syntax of a sas program?

1 Answers  


Differentiate between ceil and floor functions.

1 Answers  


What is the basic syntax style in SAS?

1 Answers  


what are the new features included in the new version of SAS i.e., SAS9.1.3?

5 Answers   College School Exams Tests, Wockhardt,


Categories