Hi! I was wondering if anyone could possibly help me. I am asked to plot enrollment by month when enrollment variable is in mm/dd/yyyy format. How can I change it to just mm?
You could try the MONYY7. (eg Jan2022) SAS Format. That will ensure your dates are plotted correctly in date order even if they spread over multiple years.
A custom date format could help, have a look at the docs of proc format and picture-type-formats. You have to be 100% sure that the source has data of a single year, only and always. If not using the format suggest by @SASKiwi is the easiest route to solve the problem.
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.