[…] You can use the ANYDTDTE. informat in SAS to read the column of dates. For each date, you can use the YEAR function to extract the year and the WEEK function to extract the week of the year. If the week is the first of last week of a year, you might have to adjust the YEAR variable to reflect the year to which the week belongs. …