Multiple choice technology programming languages

x=day() y=month() z=year() What is true about these variables

  1. x and y are numeric and z is character

  2. All the variables are numeric

  3. x and z are numeric y is character

  4. All the variables are character

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In SAS, the day(), month(), and year() functions extract the day, month, and year from a SAS date value. All three functions return numeric values representing these components, making the second option correct.