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 / m.sivakumar

proc sql;

create table sqln1 as select one.id,name,age,sex from one
inner join two on one.id=two.id;

create table sqln2 as select one.id,name,age,sex from one
left join two on one.id=two.id where two.id is null;

create table sqln3 as select coalesce(one.id,two.id)as
id,name,age,sex from one right join two on one.id=two.id
where one.id is null;

quit;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you execute a macro within a macro? Describe. : sas-macro

1106


Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.

1879


what are all the reports you generated in your recent project?

2195


what is function of retain statment

2024


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

1791


how will you location sas platform applications available from web browser? : Sas-bi

1066


why a stop statement is needed for the point= option on a set statement?

1068


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

1267


What is the maximum length of the macro variable? : sas-macro

1087


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

1037


describe about physical data integration? : Sas-di

1040


what is ae onset date n what is RDS

2568


What would be the value of month at the end of data step execution and how many observations would be there?

1138


for report generation which one you used proc report or data_null_?

7773


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

2545