Multiple choice technology platforms and products

Data a;x= "My Name";X= "My Office";run;proc print data =a;run;What is output of print statement?

  1. x= "My Name", X= "My Office"

  2. Error

  3. x= My Offi

  4. X= "My Office"

Reveal answer Fill a bubble to check yourself
C Correct answer
AI explanation

In SAS, variable names are not case-sensitive, so 'x' and 'X' in this DATA step both refer to the same variable. The second assignment ('My Office') overwrites the first ('My Name'), so only one variable exists by the time PROC PRINT runs, holding the value 'My Office' and displayed under the name in the case it was first used ('x'). The listed correct option reflects this but its value text is truncated in the data ('My Offi' should read 'My Office').