Chapter Quiz

Select the best answer for each question. After completing the quiz, check your answers using the answer key in the appendix.
  1. When you write a DATA step to create one observation per detail record you need to
    1. distinguish between header and detail records.
    2. keep the header record as a part of each observation until the next header record is encountered.
    3. hold the current value of each record type so that the other values in the record can be read.
    4. all of the above
  2. Which SAS statement reads the value for code (in the first field), and then holds the value until an INPUT statement reads the remaining value in each observation in the same iteration of the DATA step?
    1. input code $2. @;
      
    2.  input ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.