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?
A. if end = 0;
B. if eof = 0;
C. if end = 1;
D. if eof = 1;
4 comments:
Answer D
if eof = 1; identifies the last observation in the dataset
Answer D
data rose3;
infile "C:\Users\siva\Desktop\prac.txt" dsd end=eof;
input name$ age weight;
if eof=1;
run;
For latest and updated SAS certification dumps in PDF format contact us at completeexamcollection@gmail.com.
Refer our blog for more details
http://completeexamcollection.blogspot.in/2015/12/sas-certification-dumps.html
Actually the answer depends on whether the input file ends on the last observation or there are extra blank lines after that.
Post a Comment