Hi,
I did a left join of the two data and received this warning. Should I be concern about my outcome due to this warning or not. How can I rectify this issue for future codes.
/*perform left join*/
proc sql;
create table final_table_0607 as
select * from mth_0607 as x left join case_07 as y
on x.bene_id = y.bene_id;
quit;
>>>>>>>>>>>>>>>>>>>>>>
There is a variable named bene_id in both data sets in this left join. The final output data set will contain only one of these variables named bene_id, which IN THIS SPECIFIC CASE is not a problem because you left join on BENE_ID, and so the values of both variables of BENE_ID must match. (There can be other cases where the two variables have different values, and only one of those variables will wind up in the output data set)
There is a variable named bene_id in both data sets in this left join. The final output data set will contain only one of these variables named bene_id, which IN THIS SPECIFIC CASE is not a problem because you left join on BENE_ID, and so the values of both variables of BENE_ID must match. (There can be other cases where the two variables have different values, and only one of those variables will wind up in the output data set)
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.