To filter data, you never need a macro, but a WHERE (SQL, DATA or PROC step) or a subsetting IF in a DATA step.
Macros are for creating dynamic code.
For any help with your task, post example data (in text form, preferably as DATA step code with DATALINES), and the code you tried.
my sas problem is
: • Write a SAS macro program that accepts a season and player name specified by the user and creates a
graphical and summary analysis of the three-point field goal percentage (3FG%) of that player for that
season. Include separate breakdowns of this statistic by month and opposing team.
Quote from my earlier reply:
For any help with your task, post example data (in text form, preferably as DATA step code with DATALINES), and the code you tried.
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!
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.