How would you code a merge that will keep only the
observations that have matches from both sets?
Answer Posted / san
data c;
merge data a(in=a)
dat b(in=b);
if a=1 and b=1;
by<common column>;
run;
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??
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.
What is the work of tranwrd function?
Mention what is PROC in SAS?
what is proc Index? and what is proc document?
Which date function advances a date, time or datetime value by a given interval?
What are the scrubbing procedures in sas?
What are the difficulties u faced while doing vital signs table or dataset?
how many types prompting framework can be broken down to? : Sas-bi
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
What is the role of sas grid administrator? : sas-grid-administration
In sas admin differentiate between roles and capabilities? : sas-grid-administration
Briefly explain input and put function?
how to do user inputs and command line arguments in sas?