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

data data1 data2 data3;
merge left(in-a) right(in=b);
by subjid;
if a and b then output data1;
if a and not b then output data2;
if b and not a then output data3;
run;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

2330


how many types of prompts are there? : Sas-bi

1071


how do you pull data from equifax?tell me the process?

1789


Describe the ways in which you can create a macro variable?

1076


what is the effect of the options statement errors=1? : Sas programming

1051


Mention what are the data types does SAS contain?

1144


For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration

989


what is the difference between unique key and primary key? : Sas-di

1119


how does sas handle missing values in functions? : Sas programming

1196


Differences between where and if statement?

1077


What sas features do you use to check errors and data validation?

1209


describe how to adjust the performance of data integrator? : Sas-di

999


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

1183


What is SAS informats?

1095


what are _numeric_ and _character_ and what do they do? : Sas programming

1142