SAS_Institute
A00-201 · Question #9
9: 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…
The correct answer is D. if eof = 1. See the full explanation below for the reasoning.
Question
9: 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;
How the community answered
(28 responses)- A4% (1)
- B4% (1)
- C11% (3)
- D82% (23)
Community Discussion
No community discussion yet for this question.