Hello, I am trying to perform variable modifications.
I am trying to recreate SAS work dataset Data1 by performing the following:
1. Use SAS work dataset Data1 as input.
2. Drop the following variables, if they exist: Var1 Var2 Var3
3. Rename Var5 to Var15.
4. Create the Var5 variable as NUM (type) and 8 (length)
5. Convert Var15 to its numeric equivalent and store in Var5.
6. Maintain SAS binary compression.
So, I am not sure on step #4 & #5. Please see my code in progress:
data Data1 (compress=binary);
drop Var1 Var2 Var3;
Any help will be greatly appreciated!