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.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.