08-29-2011 11:30 AM
We have a job that reads in an MS Access table with a variable named 1Quarter.
Not having any luck renaming the variable to a SAS compliant name.
Our last option would be to go back into MS Access and rename it before the import, just want to check to see if there is another way to rename.
08-29-2011 12:55 PM
I sort of brute forced this one for now, exported into excel then created a new dataset in sas with correct names and imported...
Not a 100% solution but ok for now...
08-30-2011 09:05 AM
I had similar problems a few years ago when I was having SAS "talk to" Access a lot. In addition to options validvarname=any that Ksharp mentioned, you will probably need to use name literals (I think that's what their official name is), e.g. "1Quarter"n (note the n following the quote to indicate it is a name, not a string).
Try something like
rename "1Quarter"n = Quarter1;