By admin | August 31, 2009

SAS Certified Base Programmer 123 Questions (11)

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?

A. if end = 0;
B. if eof = 0;
C. if end = 1;
D. if eof = 1;

One comment | Add One

  1. admin - 08/31/2009 at 12:53 pm

    D

Leave a Comment

Leave a Reply

Your email address will not be published.