nerdexam
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)
  • A
    11% (4)
  • B
    9% (3)
  • C
    3% (1)
  • D
    77% (27)

Community Discussion

No community discussion yet for this question.

Full A00-211 Practice