O'Reilly logo

SAS Certification Prep Guide, 4th Edition by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter Quiz

Select the best answer for each question. Check your answers using the answer key in the appendix.
  1. When you write a DATA step to create one observation per detail record, what do you need to do?
    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 code $2. @@; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required