O'Reilly logo

SAS Certification Prep Guide: Base Programming for SAS 9, Third 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 5: Creating SAS Data Sets from External Files

  1. Which SAS statement associates the fileref Crime with the raw data file C:\States\Data\Crime.dat?
    1. filename crime 'c:\states\data\crime.dat';
      
    2. filename crime c:\states\data\crime.dat;
      
    3. fileref crime 'c:\states\data\crime.dat';
      
    4. filename 'c:\states\data\crime' crime.dat;
      
    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. Filerefs remain in effect until . . .
    1. you change them.
    2. you cancel them.
    3. you end your SAS session.
    4. all of the above
    Correct answer: d
    Like LIBNAME statements, FILENAME statements are global; they remain in effect until you change ...

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