BookmarkSubscribeRSS Feed
kjohnsonm
Lapis Lazuli | Level 10

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.

Patrick
Opal | Level 21

“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. 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 16 replies
  • 3493 views
  • 2 likes
  • 4 in conversation