My dataset came from Excel and some columns which should be numbers got converted as characters in SAS. Apart from one column I want to convert all other character columns into number format. How do I do that? Lets say variables "x", "y", "z","b", and "a" came in as character variables (Type= Char and format = $7.). Only variable x is okay to be a charcter. How do I keep variable x as is and conert y, z, and b to Type = Num and format = BEST. in a simple way? Was trying to do something like this, but not working: data new; set old; if variable not = 'x' and format = '$7.' then format best.; run; Thanks!
... View more