is it possible the data set was read in E.G. from an excel file with special characters in a column name?
It seems by default E.G. applies system option [pre] validVarName= ANY [/pre] but a non-E.G. session uses V7 instead of ANY.
If you set your defaults (in so many ways) to ValidVarName=ANY, you may overcome the problem.