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
Name and describe few sas character functions that are used for data cleaning in brief.
What do the put and input function do?
Differentiate between proc means and proc summary.
what are the considerations when picking a SAS/STAT procedure?
Describe 5 ways to do a “table lookup” in SAS?
What is connection profile? : sas-grid-administration
what is intially documentation in sas?
name some data transformation used in sas di? : Sas-di
what is the difference between infile and input? : Sas-administrator
What are types of transport files?
What is a macro routine?
How can you limit the variables written to output dataset in data step?
How does the internal authentication work in sas? : sas-grid-administration
How are numeric and character missing values represented internally?
I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.