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?
In SAS explain which statement does not perform automatic conversions in comparisons?
which date function advances a date, time or datetime value by a given interval? : Sas programming
How sas treats the dsd delimiters?
How are numeric and character missing values represented internally?
What is SAS? What are the functions does it performs?
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
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.
List down the reasons for choosing sas over other data analytics tools.
Describe 5 ways to do a “table lookup” in SAS?
Explain the use of proc gplot? : sas-grid-administration
Explain append procedure?
What is the basic syntax of a sas program?
What’s the difference between var b1 – b3 and var b1 — b3?
State the difference between INFORMAT and FORMAT ?