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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.