Quiz:
Reading Raw Data in Fixed Fields
Select the best answer for each question and click Score My Quiz.
- Which SAS statement correctly
uses column input to read the values in the raw data file below in
this order:
Address (4th field), SquareFeet
(2nd field), Style (1st Field), Bedrooms
(3rd field) ?
1---+----10---+----20---+----30 |
2STORY 1810 4 SHEPPARD AVENUE |
CONDO 1200 2 RAND STREET |
RANCH 1550 3 MARKET STREET |
- Which is not an advantage
of column input?
- Which is an example of standard
numeric data?
- Formatted input can be used to
read
- Which informat should you use
to read the values in column 1?
1---+----10---+----20---+----30 |
DG345 CD PLAYER $174.99 |
HJ756 VCR $298.99 |
AS658 CAMCORDER $1,195.99 |
- The COMMAw.d informat
can be used to read which of the following values?
- Which INPUT statement correctly
reads the values for
ModelNumber (1st field) after the
values for Item (2nd field)? Both Item and
ModelNumber are character variables.
1---+----10---+----20---+----30 |
DG345 CD PLAYER $174.99 |
HJ756 VCR $298.99 |
AS658 CAMCORDER $1,195.99 |
- Which INPUT statement correctly
reads the numeric values for
Cost (3rd field)?
1---+----10---+----20---+----30 |
DG345 CD PLAYER $174.99 |
HJ756 VCR $298.99 |
AS658 CAMCORDER $1,195.99 |
- Which SAS statement correctly
uses formatted input to read the values in this order:
Item
(1st field), UnitCost (2nd field), Quantity
(3rd field)?
1---+----10---+----20---+ |
ENVELOPE $13.25 500 |
DISKETTES $29.50 10 |
BANDS $2.50 600 |
RIBBON $94.20 12 |
- Which raw data file requires the
PAD option in the INFILE statement to correctly read the data using
column or formatted input?
|