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
how will you locate the sas platform applications? : Sas-bi
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
What are the 3 components in sas programming?
Give an example where SAS fails to convert character value to numeric value automatically?
What do the mod and int function do? : Sas programming
How we can create SAS USER DEFINED CODE?
How do dates work in sas?
How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?
where to use sas business intelligence? : Sas-bi
Explain append procedure?
What is the use of divide function?
For what purpose would you use the RETAIN statement?
What is the purpose of trailing @ and @@? How do you use them?
how will you location sas platform applications available from web browser? : Sas-bi
How can you limit the variables written to output dataset in data step?