Search code examples
sasdataset

Modify variable names which starts with a number in SAS


I want to modify a name of a column, for instance from "2nd_Row" to "_2nd_Row", I tried to use the 'Rename' option, but is not working.

Can I do it into a SAS Program, or should I do it manually?

Thank you!


Solution

  • Look at the documentation for name-literial.

    rename '2nd_row'n = _2nd_row;