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 write the matches of
both to one data set, the non-matches from the left-most
data set to a second data set, and the non-matches of the
right-most data set to a third data set?

Answer Posted / reddy

data both left_only right_only;
merge dataset1(in=a) dataset2(in=b);
by variable;
if a and b then output both;
if a and not b then output left_only;
if b and not a then output right_only;
run;

i think these is the easy way of writing the code,if any
one nows other please specify.thanks!

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the scrubbing procedures in sas? : Sas programming

1287


What are the data types in sas?

1066


Differentiate between proc means and proc summary.

1067


Describe the ways in which you can create macro variables?

1197


Explain the purpose of substr functions in sas programming.

1065


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

1620


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

1083


Mention few capabilities of sas framework.

1195


Mention the difference between ceil and floor functions in sas?

1159


explain about data integrator metadata reports? : Sas-di

1113


How would you identify a macro variable?

1097


How to test the debugging in sas?

1184


What do you understand by the term Normal Distribution?

994


What versions of SAS have you used (on which platforms)?

1519


what is function of retain statment

2042