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-wordmark-2025-midnight.png

Register Today!

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.


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
  • 778 views
  • 0 likes
  • 2 in conversation