Chapter 16: Reading Raw Data in Fixed Fields
-
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)?
-
input Address 15-29 SquareFeet 8-11 Style 1-6 Bedrooms 13;
-
input $ 15-29 Address 8-11 SquareFeet $ 1-6 Style 13 Bedrooms;
-
input Address $ 15-29 SquareFeet 8-11 Style $ 1-6 Bedrooms 13;
-
input Address 15-29 $ SquareFeet 8-11 Style 1-6 $ Bedrooms 13;
Correct answer: cColumn input specifies the variable's name, followed by a dollar ($) sign if the values are character ... -
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.