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 16: Reading Raw Data in Fixed Fields

  1. Which SAS statement correctly uses column input to read the values in the raw data file below in this order: Address (4th field), SquareFeet (second field), Style (first field), Bedrooms (third field)?
    image
    1. input Address 15-29 SquareFeet 8-11 Style 1-6
            Bedrooms 13;
      
    2. input $ 15-29 Address 8-11 SquareFeet $ 1-6 Style 
            13 Bedrooms;
      
    3. input Address $ 15-29 SquareFeet 8-11 Style $ 1-6
            Bedrooms 13;
      
    4. input Address 15-29 $ SquareFeet 8-11 Style 1-6
            $ Bedrooms 13;
      
    Correct answer: c
    Column input specifies the variable's name, followed by a dollar ($) sign if the values are character ...

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