How to write duplicate records into a separate dataset using
sort?
Answer Posted / 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 View All Answers
how do you debug and test your sas programs? : Sas programming
Differentiate between proc means and proc summary.
how are numeric and character missing values represented internally? : Sas programming
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
what is sas data set?
What is the difference between SAS functions and procedures?
what is the primary data source for the wrs? : Sas-bi
If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
What does proc print, and proc contents are used for?
What is the basic syntax style in SAS?
what is operational data and operational system? : Sas-di
Explain what is data step?
What is the use of the %include statement?
What are the different operating system platforms in which we can use sas? : sas-grid-administration