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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is program data vector (pdv) and what are its functions?

858


What is the length assigned to the target variable by the scan function?

918


what are sas bi dashboard components? : Sas-bi

895


explain what is factor analysis? : Sas-administrator

862


sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately

3370


What can be the size of largest dataset in SAS?

971


AE datasets names? how many types?

2277


Tell e how how dealt with..

2015


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

1187


What is Linear Regression?

911


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

800


Give some examples where proc report’s defaults are same as proc print’s defaults?

904


What are the different versions of sas that you have used until now? : sas-grid-administration

1065


Explain what is data step?

955


Name validation tools used in SAS

923