When merging 2 datasets with a common variable (not merge
key), how to keep both?
Answer Posted / vigneshwaran.s
Rename the variable in First data or in The Second Data:
Like,
Merge A(rename=(comman_var=New_var))(in=x)
B (in=y);
by New_var;
Run;
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain data step in SAS
How would you define the end of a macro?
What system options would you use to help debug a macro? : sas-macro
how are numeric and character missing values represented internally? : Sas programming
What is program data vector (pdv)?
Why double trailing @@ is used in input statement?
What are the data types does SAS contain?
In sas, what are the areas that you are most interested in? : sas-grid-administration
What is SAS informats?
for what purpose would you use the retain statement? : Sas programming
what is study design in while working with SAS? what are screening variables in SAS?
What is the difference between %local and %global? : sas-macro
explain the proc in sas? : Sas-administrator
what is sas business intelligence? : Sas-bi
what are several options for creating reports in web report studio? : Sas-bi