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 is the basic structure of the SAS base program?
What is the difference between %local and %global? : sas-macro
How would you identify a macro variable? : sas-macro
What is the difference between where and if statement?
what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming
What are the features of SAS?
Describe a time when you were really stuck on a problem and how you solved it?
how will you location sas platform applications available from web browser? : Sas-bi
What will calendar procedure do?
What is the basic syntax of a sas program?
Explain the use of proc print and proc contents?
Explain substr function?
If you were told to create many records from one record, show how you would do this using array and with proc transpose?
Describe crosslist option in tables statement?
What would be the value of month at the end of data step execution and how many observations would be there?