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 is the role of unrestrictive users? : sas-grid-administration

1004


what is transformation in sas data integration? : Sas-di

1034


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2585


Give some examples where proc report’s defaults are different than proc print’s defaults?

1071


Explain data step in SAS

1088


How we can call macros with in data step? : sas-macro

1124


Describe a time when you were really stuck on a problem and how you solved it?

2635


What is the difference between using drop = data set option in data statement and set statement?

1158


Describe the function and untility of the most difficult SAS macro that you have written.

2213


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

1019


How sas treats the dsd delimiters?

1211


Can you suggest us materials for sdtm mapping?

4445


what is SAS OPTIMIZATION?

2292


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

2100


Mention the difference between ceil and floor functions in sas?

1149