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

Describe the ways in which you can create macro variables?

854


Mention few capabilities of sas framework.

926


Explain substr function?

799


Briefly explain input and put function?

840


explain the concepts and capabilities of business object? : Sas-bi

756


what are _numeric_ and _character_ and what do they do? : Sas programming

892


What are the parameters of scan function?

860


describe the interaction table in sas di? : Sas-di

791


explain about sas business intelligence? : Sas-bi

825


In SAS explain which statement does not perform automatic conversions in comparisons?

1076


How to create list output for cross-tabulations in proc freq?

859


what is sas olap server? : Sas-di

972


: and & modifiers.

1110


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

913


How would you include common or reuse to be processed along with your statements?

2139