I'm hoping I can write a macro to run the same piece of code a number of times.
I want to run it once per month on the last day of the month beginning June 30, 2012 to June 30, 2013.
Dates always trip me up when I want to have the date update each time through.
I will have a prompt for the user to enter the start date and the end date (in case they want to change the date ranges).
Any help structuring the macro so the month end date changes each pass through would be so welcomed!
Thank you.
I think you would want to use the INTNX function, with the alignment parameter set to E.
You could also include this calculation in the %SYSFUNC macro function, and put it in a macro loop to increment to the last day of the next month each iteration of the macro.
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.