Sep 30, 2011

59

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;
 

No comments:

Post a Comment