Hello, I have a very basic question I guess. I'm completely new to SAS. Well, I have a table with 66'814 observations of start and end dates and I need to get only the weekdays. The variables are named start_date and end_date. I tried the intck (weekday) function, but it didn't actually work the way I thought it would. if weekday(star_date) in(1,7) then new = intck("weekday", start_date, end_date); else new = intck("weekday", start_date-1, end_date); run; The error appeared that start_date and end_date aren't initalized. All the solutions I found looked like I have to use this function above for each observation seperately, but that would took hours to do so. Thank you for any help. Best wishes.
... View more