WEEKDAY Function in SAS (Calculate 4 days of week)
The WEEKDAY function produces an integer that represents the day of the week, where 1 = Sunday, 2 = Monday, …, 7 = Saturday. Basic Syntax: WEEKDAY(<date>); WEEKDAY(<date>); Here is the complete table of how the weekday function returns the values. Sunday 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday 6 Saturday 7 … Read more