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
how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5
please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??
List out some key concept of SAS
In ARRAY processing, what does the DIM function do?
What is the difference between nodupkey and nodup options?
What system options would you use to help debug a macro? : sas-macro
how do the in= variables improve the capability of a merge? : Sas programming
What is the use of stop statement?
How would you invoke a macro? : sas-macro
Hi, If anyone has base SAS certification dumps, please share.
What is the general format of function in sas? : sas-grid-administration
what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming
Explain the use of proc print and proc contents?
How would you define the end of a macro?
What are the differences between proc means and proc summary?