how do we get duplicate observations in a separate dataset?

Answer Posted / bitla

ex:

data dup1 dup2;
set original;
by dup_var;
if first.dup_var then output dup1 else output dup2;
run;

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of sas functions?

864


What does PROC print, and PROC contents do?

970


What is the difference between INPUT and INFILE ?

986


what is the purpose of _error_? : Sas programming

858


what are the considerations when picking a SAS/STAT procedure?

3134


how are numeric and character missing values represented internally? : Sas programming

864


what is sas olap server? : Sas-di

971


how will you locate the sas platform applications? : Sas-bi

800


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

1154


What are pdv and it functions?

776


What is the general format of function in sas? : sas-grid-administration

774


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

895


How do dates work in SAS data?

916


what is the Population you used in your project, is it ITT or PP?

2475


What is the difference between nodupkey and nodup options?

792