Reads a value in the form of a week-number within
the year and returns a SAS date value by using the U algorithm.

Category: | Date and Time |

The WEEKUw. informat reads the week-number value within
the year, and then returns a SAS date value by using the U algorithm.
If the input does not contain a year expression, then WEEKUw. uses the current year as the year expression,
which is the default. If the input does not contain a day expression,
then WEEKUw. uses the first
day of the week as the day expression, which is the default.

The U Algorithm calculates
the SAS date value using the number-of-week value within the year
(Sunday is considered the first day of the week). The number-of-week
value is represented as a decimal number in the range 0–53,
with a leading zero and maximum value of 53. For example, the fifth
week of the year would be represented as 05.

The WEEKUw. informat reads the week-number value as a
decimal number in the range 0–53, with Sunday as the first
day of the week.

The WEEKVw. informat reads the number-of-week value as
a decimal number in the range 01–53, with Monday as the first
day of the week. Week one of the year is the week that includes both
January fourth and the first Thursday of the year. If the first Monday
of January is the second, third, or fourth, the preceding days are
part of the last week of the preceding year.

Functions:

WEEK Function in SAS Functions and CALL Routines: Reference