Hi everyone, was hoping someone can help me with this in SAS:
I have data in SAS like this:
Obs Date Item1 Item2 Item3
1 _00853 1 3 5
2 _00901 124 24 2324
3 _00902 24 12 232
...
...
...
x _00952 135 235 345
How would I make the variables in Date column to SAS date variables? these columns stand for weeks (_00853 is the last week of 2008, _00901 is the first week of 2009)?
The best would be able to make date column have 02JAN2009 (week ending date)then next row to have 09JAN2009:
Obs Date Item1 Item2 Item3
1 02JAN2009 1 3 5
2 09JAN2009 124 24 2324
...
I have tried changing the formats or creating an array? But I am having no luck.
Thank you.
I have data in SAS like this:
Obs Date Item1 Item2 Item3
1 _00853 1 3 5
2 _00901 124 24 2324
3 _00902 24 12 232
...
...
...
x _00952 135 235 345
How would I make the variables in Date column to SAS date variables? these columns stand for weeks (_00853 is the last week of 2008, _00901 is the first week of 2009)?
The best would be able to make date column have 02JAN2009 (week ending date)then next row to have 09JAN2009:
Obs Date Item1 Item2 Item3
1 02JAN2009 1 3 5
2 09JAN2009 124 24 2324
...
I have tried changing the formats or creating an array? But I am having no luck.
Thank you.