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

Give some examples where proc report’s defaults are same as proc print’s defaults?

1054


What is the difference between nodupkey and nodup options?

972


How do you delete duplicate observations in sas?

1008


Hi, If anyone has base SAS certification dumps, please share.

1807


How would you invoke a macro? : sas-macro

1042


How would you determine the number of missing or nonmissing values in computations?

1009


What makes sas stand out to be the best over other data analytics tools?

1003


Mention common programming errors committed in sas ?

1058


What is SAS informats?

1055


Differentiate between format and informat? : sas-grid-administration

1010


Describe a time when you were really stuck on a problem and how you solved it?

2482


Explain the purpose of retain statement.

1006


Differentiate input and infile.

1048


What are the limitations for memory allocation for SAS variables

1425


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

1098