SAS_Institute
A00-211 · Question #102
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; run; Which one of the…
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; 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
(35 responses)- A11% (4)
- B9% (3)
- C3% (1)
- D77% (27)
Community Discussion
No community discussion yet for this question.