Click on the Comments to view the Answers

Monday, January 25, 2010

Base 47

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:

SASGuru said...

Answer D
if eof = 1; identifies the last observation in the dataset

siva said...

Answer D

data rose3;
infile "C:\Users\siva\Desktop\prac.txt" dsd end=eof;
input name$ age weight;
if eof=1;
run;

CompleteExamCollection said...

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

Anonymous said...

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



Technology Top Blogs On our way to 1,000,000 rss feeds - millionrss.com Hihera.com Blog Directory - OnToplist.com blogarama - the blog directory Blog Directory
Disclaimer

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.

Other brand and product names are trademarks of their respective companies.

This blog is not responsible for any kind of copyright violation. This blog just collects the links hosted or posted by other servers/people/search engines.The creator of this page or the ISP(s) hosting any content on this site take no responsibility for the way you use the information provided on this site.If anybody has any copyright claim on it and doesn’t wish the information provided to be shown on our site, please do respond to this email. We shall remove them off immediately. Any inconvenience is regretted. Please do mention your exact grievance/problems with respect to certain third party links. We assure you that appropriate action will be taken off. Thank you