BookmarkSubscribeRSS Feed
Asan-Haque2023
Calcite | Level 5
I have a basketball data. I merge the data. Now how can i find 3 point shot using sas macro program?
3 REPLIES 3
Kurt_Bremser
Super User

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.

Asan-Haque2023
Calcite | Level 5

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.  

 

 

Kurt_Bremser
Super User

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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1158 views
  • 0 likes
  • 2 in conversation