I have imported an xlsx file in which columns have numerical names, e.g., 11003, 21003, 21103, and so on (more than 200 variables). The file imported correctly and I see the var names as 11003, 21003, 21103 in the output window and in the proc contents output. However, when I refer to my variables as 11003, 21003, 21103, etc., the SAS Studio does not recognize the variable names and produces an error message. I cannot run even a simple SAS program such as data a; set b; if 21103 eq 0; run; Variables with nonnumerical (character) names are recognized correctly, but if I try to print a mix of variables with nonnumerical and numerical names I get an error: proc print data=coops.full2015; var ОКПО ОКВЭД 11103; _____ 22 200 ERROR 22-322: Syntax error, expecting one of the following: a name, ;, -, /, :, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_. ERROR 200-322: The symbol is not recognized and will be ignored. Enclosing the numerical var name in quotation marks does not help: the same error is produced. Please tell me how to access the variables with numerical names in my file. Putting the numerical var name in quotes does not help: proc print data=coops.full2015; var ОКПО ОКВЭД "11103"; run; _______ 22 200 ERROR 22-322: Syntax error, expecting one of the following: a name, ;, -, /, :, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_. ERROR 200-322: The symbol is not recognized and will be ignored. Please help me to access the variables with numerical names in my file. Thank you for your cooperation.
... View more