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

Answer Posted / uma

first sort these datasets by common variable DEPT_ID,Then
use the following:
data left_join;
merge emp (in=a) dept (in=b);
by dept_id;
if a then output;
run;

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is change analysis in sas di ? : Sas-di

606


What is the basic structure of a sas program?

600


How substr function works in sas?

701


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

584


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

560






What is the purpose of trailing @ and @@? How do you use them?

613


How to create an external dataset with sas code?

588


What commands are used in the case of including or excluding any specific variables in the data set?

594


What can be the size of largest dataset in SAS?

717


what is SAS OPTIMIZATION?

1817


what is ae onset date n what is RDS

1939


What are the different servers in sas? : sas-grid-administration

600


What are the difficulties u faced while doing vital signs table or dataset?

1937


how are numeric and character missing values represented internally? : Sas programming

619


Where do you use proc means over proc freq?

564