The five-digit digit
selector truncates the leading digits, and the PREFIX= option specifies
a character string to place in front of the formatted value. The
PREFIX= option must be specified after the template.
Correct answer: b
Without the DEFAULT=
option, the length for the format is 8 characters, but 10 characters
are needed. The DEFAULT= option is specified after the format name.
The DATATYPE= value must match the data, which is Date in this example.
%m displays a one- or two-digit month, %d displays a one- or two-digit
day, and %Y displays a four-digit year.
Correct answer: e
DEFAULT= and ROUND are
format options that are specified after the format name. DEFAULT=
specifies the default length of the formatted value. ROUND rounds
the value to the nearest integer. DATATYPE= and MULTIPLIER= are template
options that are specified after the template value.
Correct answer: c
The CMPLIB= system option
specifies where to look for previously compiled functions and subroutines.
Correct answer: c
The correct directives
are %Y, which produces a four-digit year, %0m,which
produces a two-digit month, and %0d, which
produces a two-digit day. Separate all date directives with a period.
Following the date directives, use the @ symbol and use the time directives.
The correct time directives are %I: %M:%S %p or %0I:%0M:%0S
%p. You would use %I or %0I because
the output shows 8 in the evening, which is in the 12-hour clock and
not the 24-hour clock.
Correct answer: b
Character arguments
must be followed by a dollar sign and separated with a comma. No quotation
marks are needed.
Correct answer: d
Custom functions are
stored in a package within a SAS table. The OUTLIB= option consists
of a three-level name. The first two levels refer to the SAS table
(libref.table-name),
and the third level refers to the package.