When I load in an excel sheet through PROC IMPORT
, locally installed SAS automatically replaces the variable names with spaces to an underscore (_). Such as Patient ID will become Patient_ID
and Health Records will become Health_Records
.
However, when I load the same file in SAS Studio, that renaming convention isn't applied. So Patient ID and Health Records are kept as is...without the underscore in place.
Thus, how would I call these variables in SAS Studio? A syntax error pops when I try to call IF Patient ID THEN this
. Would I have to physically add the underscore to my original dataset or is there an easier way?