Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How would you code a merge that will keep only the
observations that have matches from both sets.

Answer Posted / madhavi

proc sort data=one;
by id;
run;
proc sort data=two;
by id;
run;
data comm_rec;
merge one(in=a) two(in=b);
by id;
if a and b;
run;
proc print data=comm_rec;
run;

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between proc means and proc summary?

1065


Which function is used to count the number of intervals between two sas dates?

1064


How you can read the variables that you need?

1067


What is the difference between where and if statement?

1058


how do you debug and test your sas programs? : Sas programming

1067


What is the basic syntax of a sas program?

1139


why a stop statement is needed for the point= option on a set statement?

997


How is character variable converted into numeric variable and vice versa?

1104


how does sas handle missing values in functions? : Sas programming

1120


what is the primary data source for the wrs? : Sas-bi

1133


is data integration and etl programming is same? : Sas-di

1007


What is the maximum and minimum length of macro variable

1165


To what type of programms have you used scratch macros?

2524


How would you include common or reuse to be processed along with your statements?

2315


What is the basic syntax style in SAS?

1092