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

How necessary is it to be creative in your work?

2480


How do you test for missing values?

1643


what are the scrubbing procedures in sas? : Sas programming

1287


how sas deals with business intelligence? : Sas-bi

1056


How do you use the do loop if you don’t know how many times you should execute the do loop?

1266


How do dates work in sas?

1147


for what purpose would you use the retain statement? : Sas programming

1100


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

1182


Mention common programming errors committed in sas ?

1131


In proc transpose and data step with arrays which one you pick?

3115


How many ways to overcome a missing values???

2818


what are sas bi dashboard components? : Sas-bi

1174


do you prefer proc report or proc tabulate? Why? : Sas programming

991


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1544


describe how to adjust the performance of data integrator? : Sas-di

1012