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

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?
A. 2
B. 72
C. 95
D. . (missing numeric value)

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “Which one of the following is the value of the variable WEIGHT in the output data set?

  1. Answer=A. 2

    This is because the input informat is improperly used to read the data. Since there is no period right after 2, the input statement starts reading weight at COLUMN 2. Thus, it reads “2” and then a space, so 2 is input as the value for weight. The correct statement to read the data properly would be:

    input @1 height 2. @4 weight 2.;

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.