Chapter 13: Using SAS Utility Procedures

  1. Correct answer: a
    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.
  2. 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.
  3. 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.
  4. Correct answer: c
    The CMPLIB= system option specifies where to look for previously compiled functions and subroutines.
  5. 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.
  6. Correct answer: b
    Character arguments must be followed by a dollar sign and separated with a comma. No quotation marks are needed.
  7. 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.
Last updated: October 16, 2019
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.35.238