SAS Base Programming for SAS 9 — Question 22

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?

Answer options

Correct answer: A

Explanation

The correct answer is A because the input statement specifies to read the weight starting from the 4th position, which is blank in this case, resulting in a missing value. The missing numeric value in SAS is represented as a period, so the correct response aligns with the input format. The other options do not reflect the actual value assigned to WEIGHT due to the input positioning.