What I want to do is filter one table by the values in another. Something like:
data want;
set have;
where variable_i >= othertable[variable_i, column_name];
run;
Variable_i exists in both tables and has 10 different values. The problem is that the filter value should be different for each of those values, and I don't want to hard code anything.
Maybe it's because I'm too used to R, where this would be so easy.
Thank you. I was hoping there was a less annoying way, like creating a macrovariable vector.
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.