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

Community Discussion

No community discussion yet for this question.

Full A00-201 Practice