Exam A00-211 All QuestionsBrowse all questions from this exam
Question 36

The contents of the raw data file SIZE are listed below:

--------10-------20-------30

72 95

The following SAS program is submitted:

data test;

infile 'size';

input @1 height 2. @4 weight 2;

run;

Which one of the following is the value of the variable WEIGHT in the output data set?

    Correct Answer: C

    The SAS program reads the raw data file 'SIZE' where the line of data is '72 95'. The `input` statement specifies that `height` should be read from columns 1-2 and `weight` from columns 4-5. The value in columns 4-5 is '95', making the value of the variable WEIGHT in the output data set 95.

Discussion
mhminkovOption: A

one has to be extremely careful with punctuation when reading the questions. There is a missing . before the semicolon in the input statement, which is making answer A indeed correct. If the format of the second variable would have been written correctly (2.), then the answer would be 95.

Kleinstone

this question is very strange.