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
How long can a macro variable be? A token? : sas-macro
do you need to know if there are any missing values? : Sas programming
what is sas and what are the functions? : Sas-administrator
how does sas handle missing values in functions? : Sas programming
How do you delete duplicate observations in sas?
what is the Population you used in your project, is it ITT or PP?
Explain the difference between nodup and nodupkey options?
What is SAS? What are the functions does it performs?
which date functions advances a date time or date/time value by a given interval? : Sas programming
How would you define the end of a macro?
Give e an example of..
What areas of SAS are you most interested in?
Give e an example of..
What would be the value of month at the end of data step execution and how many observations would be there?
This entry was posted in General. Bookmark the permalink. Post a comment or leave