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 is the Population you used in your project, is it ITT or PP?

2727


Mention what are the data types does SAS contain?

1140


What is the purpose of _character_ and _numeric_?

1050


Explain the main difference between the sas procedures and functions? : Sas-administrator

1056


what do the sas log messages "numeric values have been converted to character" mean? : Sas programming

1015


how would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable? : Sas programming

1323


What is the use of stop statement?

1061


Mention common programming errors committed in sas ?

1102


How would you invoke a macro? : sas-macro

1099


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

1335


Do you need to know if there are any missing values?

1032


What is the length assigned to the target variable by the scan function?

1138


For clinical entire study how many tables will create approx?

1951


What is maximum storage capability of SAS?

1409


What is the use of divide function?

1055