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
Describe a time when you were really stuck on a problem and how you solved it?
How to limit decimal places for the variable using proc means?
What Proc glm does?
What is the use of %include statement?
name several ways to achieve efficiency in your program? : Sas programming
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
For what purpose would you use the RETAIN statement?
how do you want missing values handled? : Sas programming
Mention sas system options to debug sas macros.
Enlist the functions performed by sas.
What is the difference between class statement and by statement in proc means?
what are the categories that sas informats are used to the place the data? : Sas-administrator
what versions of sas have you used (on which platforms)? : Sas programming
How do you debug and test your SAS programs?
In sas, what are the areas that you are most interested in? : sas-grid-administration