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

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

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

24613 $25.31

The following SAS program is submitted:

data inventory;

infile 'product';

input idnum 5. @10 price;

run;

Which one of the following is the value of the PRICE variable?

    Correct Answer: C

    In the given SAS program, the input statement 'input idnum 5. @10 price;' specifies that the 'idnum' should be read from the first 5 columns and 'price' should be read starting from the 10th column. The number 24613 occupies the first 5 columns and there's no numeric data starting from the 10th column for the 'price'. Instead, there is a dollar sign, which is not numeric. Therefore, the 'price' cannot be read as a numeric value, resulting in a missing numeric value.

Discussion
CHENTEPE

ANSWER SHOULD BE 0.31

mhminkovOption: B

well, not exactly missing numeric, but answer C is close to 0,31, the result I get with the following code: data inventory; infile datalines; input idnum 5. @10 price; datalines; 24613 $25.31 ;