Multiple choice technology programming languages

x=input('13mar2010'd,date9.) What is the length and type of the variable x

  1. 8 bytes;Numeric

  2. 9 bytes Numeric

  3. 8 bytes Character

  4. 9 bytes Character

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

In SAS, the INPUT function with a date format (like date9.) converts a character string to a SAS date value, which is stored as an 8-byte numeric representing days since January 1, 1960. The '13mar2010'd syntax creates a date constant, and INPUT with date9. format converts it properly to numeric.