Quiz:
Reading
Date and Time Values
Select the best answer for each question and click Score My Quiz.
-
SAS date values are the number
of days since which date?
-
A great advantage of storing dates
and times as SAS numeric date and time values is that . . .
-
SAS software does not automatically
account for daylight savings time, but it does make
adjustments for:
-
An input data file has date expressions
in the form 10222001. Which SAS informat should you use to read these
dates?
-
The minimum width of the TIMEw.
informat is:
-
Shown below are date and time
expressions and corresponding SAS datetime informats. Which date and
time expresssion cannot be read by the informat shown
beside it?
- What is the default value of the
YEARCUTOFF= system option?
-
Suppose your input data file contains
the date expression 13APR2009. The YEARCUTOFF= system option
is set to 1910. Because of the last two digits in the variable's year
value, SAS software will read the date as:
-
Suppose the YEARCUTOFF= system
option is set to 1920. An input file contains the date expression
12/08/1925, which is being read with the MMDDYY8. informat.
Which date will appear in your data?
-
Suppose your program creates
two variables from an input file. Both variables are stored as SAS
date values:
FirstDay records the start of a billing
cycle and LastDay records the end of that cycle. The
code to calculate the total number of days in the cycle would be:
|