user17385654
user17385654

Reputation:

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!

Upvotes: 0

Views: 429

Answers (1)

data _null_
data _null_

Reputation: 9109

Look at the documentation for name-literial.

rename '2nd_row'n = _2nd_row;

Upvotes: 3

Related Questions