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. 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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