06-04-2018 01:51 PM
My answer is E to the question below but SAS answer key is C.
With the system option VALIDVARNAME=ANY, which of the following variable names is valid?
e. All of the above
According to the definition, I believe that a, b, and d are all valid names. Can someone let me know why E is not a correct answer?
06-04-2018 01:58 PM
06-04-2018 02:09 PM
I can see why you are confused. I suggest you re-read the section of your study guide that deals with VALIDVARNAME and n-literals to see if it makes a distinction between those two concepts. You are correct that all of the variables are valid if you use them as n-literals such as
'4BirthDate'n = 1;
'$Cost'n = 2;
_Items_ = 3;
'Tax-Rate'n = 4;
However, C is the only variable name that you can use without embedding the name into an n-literal, as shown.