I'm trying to do a condition for my data sets one of two bases. For that I'm using the if statement, but it's not working. For example: data work.test; if &var. = 'yes' then set lib1.base_1; else set lib2.base_2; run; It is always setting lib2.base_2 and creating a variable called yes. How can I do to automatically sets one of this two bases only changing the variable &var.? Thanks!
... View more