I need to pass the iner-loop the three pieces of data to control the loop that is all I am trying to do. I think this is not a loop 'control' problem anymore this is a date formatting issue. “I hate the way SAS uses dates.” It’s easily the hardest language I have ever used ever with respect to using dates. I am sorry for wasting your time.
“I hate the way SAS uses dates.” It’s easily the hardest language I have ever used ever with respect to using dates.
Why? I find it really simple to work with dates in SAS. Once you've got a SAS Date value (number of days since 1/1/1960) you're simply dealing with a number and can do whatever calculations you wish. And on top of it there are all the calendar functions like intnx() if you need to shift a date to end of month, quarter or the like.
I need to pass the iner-loop the three pieces of data to control the loop that is all I am trying to do.
I still don't understand what you want to loop over. If you would describe the desired output based on your sample data then I'm sure someone can provide you with a solution.
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.