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
what are 5 ways to perform a table lookup in sas? : Sas-administrator
What is interleaving in SAS?
Describe the ways in which you can create macro variables? : sas-macro
Explain append procedure?
what is business intelligence? : Sas-bi
how will you location sas platform applications available from web browser? : Sas-bi
Compare sas with other data analytics tools.
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
What is the difference between %put and symbolgen? : sas-macro
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
How would you define the end of a macro?
How sas treats the dsd delimiters?
what is the function of catx syntax? : Sas-administrator
explain the proc in sas? : Sas-administrator
What are the functions which are used for character handling functions?