SAS_Institute
A00-201 · Question #71
A00-201 Question #71: Real Exam Question with Answer & Explanation
The correct answer is D. if eof = 1;. See the full explanation below for the reasoning.
Question
The following SAS program is submitted and reads 100 records from a raw data file:
data work.total;
infile 'file-specification' end = eof;
input name $ salary;
totsal + salary;
<insert IF statement here>
run;
Which one of the following IF statements writes the last observation to the output data set?
Options
- Aif end = 0;
- Bif eof = 0;
- Cif end = 1;
- Dif eof = 1;
Community Discussion
No community discussion yet for this question.