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.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.