Answer Posted / neel
proc sort data=ds1;
by var1;
proc sort data=ds2;
by var1;
run;
*from both datasets only matching data;
data match_merge;
merge ds1(in=a) ds2(in=b);
by var1;
if a and b;
run;
Is This Answer Correct ? | 15 Yes | 3 No |
Post New Answer View All Answers
Explain the purpose of retain statement.
what is data governance? : Sas-di
what is the function of catx syntax? : Sas-administrator
How do dates work in SAS data?
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming
What is the difference between where and if statement?
Can you suggest us materials for sdtm mapping?
Briefly explain input and put function?
What is a put statement?
What is the basic syntax of a sas program?
what are the component of range? : Sas-bi
how does sas handle missing values in procs? : Sas programming
what techniques and/or procs do you use for tables? : Sas programming
What is the difference between %put and symbolgen? : sas-macro