How would you code a merge that will keep only the
observations that have matches from both sets.
Answer Posted / nishant
Using "IN" variable option. Look at the following example.
data three;
merge one(in=x) two(in=y);
by id;
if x=1 and y=1;
run;
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What is the basic structure of a sas program?
what is the primary data source for the wrs? : Sas-bi
How do you use the do loop if you don’t know how many times you should execute the do loop?
Do you need to rearrange the order of the data for the report?
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.
Of all your work, where have you been the most successful?
Mention few capabilities of sas framework.
What Proc glm does?
how can you import .csv file in to sas? : Sas programming
Give e an example of..
how many display types available in sas bi dashboard? : Sas-bi
What is interleaving in SAS?
What is the basic structure of the SAS base program?
what is the purpose of _error_? : Sas programming
What is PROC in SAS?