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

Explain the special input delimiters used in sas programming.

0 Answers  


What is the difference between proportion and average?

0 Answers   KPMG,


What are the statements in proc sql?

0 Answers  


What areas of SAS are you most interested in?

0 Answers   Quintiles,


what are several options for creating reports in web report studio? : Sas-bi

0 Answers  






When merging 2 datasets with a common variable (not merge key), how to keep both?

3 Answers  


hi i date is 05sep2005; i want the oupput like 05sep2005:00:00:00 ; how it wil come?

6 Answers   Accenture,


what versions of sas have you used (on which platforms)? : Sas programming

0 Answers  


what is the difference between SET and MERGE?

19 Answers   CitiGroup,


Tell e how how dealt with..

0 Answers  


Explain the message ‘MERGE HAS ONE OR MORE DATASETS WITH REPEATS OF BY VARIABLE’.

2 Answers  


what is operational data and operational system? : Sas-di

0 Answers  


Categories