Data work.my_data_file; Result_1 = Week(today()); Result_2 = Week(today(),'u'); Result_3 = Week(today(),'v'); Result_4 = Week(today(),'w'); Run; |
What's happening in the script above?
Variable | Input | Output | Description |
---|---|---|---|
Result_1 | Week(22378) | 14 | The number of weeks into a year. |
Result_2 | Week(22378, 'u') | 14 | See Above |
Result_3 | Week(22378, 'v'); | 14 | See Above |
Result_4 | Week(22378, 'w'); | 14 | See Above |
See also; DAY Function
Kevin Regan
Have an article, idea, found a typo, want to contribute? Shoot me an email
Here
Below are links to some Udemy Data Science Courses. I've been using Udemy for a number of years now, and I've found their courses super helpful, maybe you will also.