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 / vinod swarna

proc sql;

create table both_match as
select *
from one
intersect
select *
from two;

create table left_non as
select *
from one
except
select *
from two;

create table right_non as
select *
from two
except
select *
from one;

quit;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you test for missing values? : Sas programming

1048


What is SAS?

1048


What do the put and input function do?

1054


what are 5 ways to perform a table lookup in sas? : Sas-administrator

1232


what do the pad and dim functions do? : Sas programming

1016


I need level 2 to 5 sas using companies in india

2380


Difference between nodup and nodupkey options?

1184


what is the difference between infile and input? : Sas-administrator

1133


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

4510


Describe the ways in which you can create macro variables?

1186


How would you identify a macro variable?

1085


What are the different operating system platforms in which we can use sas? : sas-grid-administration

1063


What are the applications primarily used by business analyst? : Sas-bi

992


what can you learn from the sas log when debugging? : Sas programming

1084


What are the features of SAS?

1030