I'm working on a data set (DATA) which has 3 variables (Var1, Var2, Var3) in a format I need to change. The variables are in a special date format (for example purposes, say OLDFMT1) and I need to change them into regular SAS date format using the DATEPART function.
The issue is that I need to accomplish this in a single data step using both a do loop and an array that calls the DATEPART function. The DIM function must be used used right in the array and I must drop the index varaible (i) before I end the datasetp.
Then, I have to apply the DATE9. function to these changed variables.
I'm fairly new to do loops and this one is causing me massive headaches. Any help would be greatly appreciated.