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.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.