Which statement(s) completed the program and produced a non-missing value for the variable TOTQUANTITY in the final observation of the output data set?

Given the raw data file YEARAMT:
—-|—10—|—20—|—-30
1901 2
1905 1
1910 6
1925 .
1941 1
The following SAS program is submitted:
data coins;
infile ‘yearamt’;
input year quantity;
<insert statement(s) here>
run;
Which statement(s) completed the program and produced a non-missing value for the variable TOTQUANTITY in the final observation of the output data set?
A. totquantity + quantity;
B. totquantity = sum(totquantity + quantity);
C. retain totquantity; totquantity = totquantity + quantity;
D. retain totquantity0; totquantity = totquantity + quantity;

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

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


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