Please write codes to merge two datasets and keep every
record in the first dataset.
Answer Posted / reshma
proc sort data=dataA;
by commonvar;
run;
proc sort data=dataB;
by commonvar;
run;
data new;
merge dataA (in=a) dataB (in=b);
if a ;
by commonvar;
run;
Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
what are some good sas programming practices for processing very large data sets? : Sas programming
Name types of category in which SAS Informats are placed?
What are the functions which are used for character handling functions?
what are the benefits of data integration? : Sas-di
Enlist the functions performed by sas.
what has been your most common programming mistake? : Sas programming
In sas admin differentiate between roles and capabilities? : sas-grid-administration
What are the statements that are executed only?
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
What can you learn from the SAS log when debugging?
what is change analysis in sas di ? : Sas-di
what is the use of proc sql? : Sas programming
What is proc sort?
Do you need to know if there are any missing values?
Why and when do you use proc sql?