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 / vijay

Dear Guest,
Merge won't accept NODUPKEY option. it is for PROC SORT.
the following code will get only matched observations in
both datasets

data three;merge one (in=a) two (in=b);by **;if a and b;run;

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does the internal authentication work in sas? : sas-grid-administration

1115


Explain substr function?

1103


what are informats in sas? : Sas-administrator

1090


what has been your most common programming mistake? : Sas programming

1103


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

2607


Differentiate between sas functions and sas procedures.

1227


explain the function of substr in sas? : Sas-administrator

1008


If a variable contains letters or special characters, can it be numeric data type?

1208


what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming

1072


What commands are used in the case of including or excluding any specific variables in the data set?

1092


How you can read the variables that you need?

1121


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

1073


Describe what are the different levels of administrative users in sas? : sas-grid-administration

1035


How to create an external dataset with sas code?

1150


For what purposes have you used sas macros? : sas-macro

999