how to write code for left outer join in SAs using datastep?

Answer Posted / lakshmi

data left_join;
merge data1(in=a) data2(in=b);
by subjid;
if a;
run;

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the role of administrative users? : sas-grid-administration

660


How would you define the end of a macro? : sas-macro

612


Name any two sas spawners? : sas-grid-administration

560


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

802


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

1768






what is star schema? : Sas-di

647


what is the Population you used in your project, is it ITT or PP?

2183


What are the advantages of using sas?

609


Mention what is PROC in SAS?

603


how does sas handle missing values in assignment statements? : Sas programming

569


WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?

2266


what is factor analysis? : Sas-administrator

615


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

944


What is the difference between reading data from an external file and reading data from an existing data set?

636


What do you understand by the term Normal Distribution?

570