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 different operating system platforms in which we can use sas? : sas-grid-administration

1008


what is sas database server? : Sas-di

1050


What is the difference between %put and symbolgen? : sas-macro

1158


explain what is data set in sas? : Sas-administrator

910


What are the table names in oracle database...?

2687


What are the difference between ceil and floor functions in sas?

1274


What is the role of administrative users? : sas-grid-administration

1024


If you could design your ideal job, what would it look like?

2870


Differentiate between sas functions and sas procedures.

1146


why is sas data integration studio important? : Sas-di

976


Have you used macros? For what purpose you have used? : sas-macro

991


Mention common programming errors committed in sas ?

1057


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

1414


what is sas metadata repository? : Sas-bi

1051


What is the order of application for output data set options, input data set options and SAS statements?

1503