Chapter 6: Creating SAS Data Sets from External Files

  1. Correct answer: a
    You assign a fileref by using a FILENAME statement in the same way that you assign a libref by using a LIBNAME statement.
  2. Correct answer: d
    Like LIBNAME statements, FILENAME statements are global; they remain in effect until changed or canceled, or until the SAS session ends.
  3. Correct answer: b
    You use an INFILE statement to specify the raw data file to be read. You can specify a fileref or an actual filename (in quotation marks). The OBS= option in the INFILE statement enables you to process only records 1 through n.
  4. Correct answer: d
    The keyword _NULL_ in the DATA statement enables you to use the power of the DATA step without actually creating a SAS ...

Get SAS Certification Prep Guide, 4th 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.