When the month changes, a calendar week can be split into two technical weeks: TWa (part of the week in the previous month) and TWb (part of the week in next month)
In a technical week, we would like to separate data based on months.
For example: Transition week - 5th week of 2023 have 2 days from Jan month(30th & 31st) and 5 days from Feb month(1st to 5th)
Data needs to be separated based on week along with month but should not aggregate the whole week data in a transition week as shown below.
Please suggest us the appropriate code for the technical week issue.
Post example data in a data step with datalines, not in pictures.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: