How would you delete observations with duplicate keys?
Answer Posted / vijay
proc sort nodupkey;by var;run;
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are the data types does SAS contain?
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.
How substr function works in sas?
Differentiate between ceil and floor functions.
what is the difference between floor and ceil functions in sas? : Sas-administrator
how to remove duplicates using proc sql?
describe about metadata object? : Sas-di
How to sort in descending order?
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
Tell me more about the parameters in macro? : sas-macro
What is your favorite all time computer book? Why?
what are the considerations when picking a SAS/STAT procedure?
Differentiate between proc means and proc summary.
Explain the use of proc print and proc contents?
how to change the execute of macro