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 many types of prompts are there? : Sas-bi
How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro
What are the differences between sum function and using “+” operator?
What is the differnce between SDTM 3.1.2 to 3.1.1 version
Name few SAS functions?
explain the proc in sas? : Sas-administrator
Explain data step in SAS
Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??
Can you execute a macro within a macro? Describe. : sas-macro
Define run-group processing?
What do the SAS log messages "numeric values have been converted to character" mean?
what can you learn from the sas log when debugging? : Sas programming
what is data access? : Sas-di
What’s the difference between var b1 – b3 and var b1 — b3?
How would you invoke a macro? : sas-macro