Click on the Comments to view the Answers

Friday, January 22, 2010

SAS 39

Which of the following keywords is used to create a raw data file?

A) filename
B) libname
C) infile
D) set

4 comments:

SASGuru said...

Answer: D
Reasoning: 'Libname' is used to create a library. 'Filename' will
reference an external file where raw data is stored and after it has
been referenced once, the 'infile' is used to identify the external file.
'Set' will create a raw data file.

Unknown said...

I don't agree with this one. You don't even need a set statement to create a raw data file. It should either be file or put. Below is a prior question:
data group;
infile 'team';
input name $15. age 2.;
file 'file-specification';
put name $15. +5 age 2.;
run;

Unknown said...

data a;
input name $ age @10 ht ;
cards;
Ruth 39 11
Jose 32 22
Sue 30 33
John 40 44
;

libname des "C:\Users\Abhijit\Desktop";

data des.b;
set a;
file "C:\Users\Abhijit\Desktop\axx.txt";
put name age ht;
run;


this will create raw data file

Ruth 39 11
Jose 32 22
Sue 30 33
John 40 44

Stevina Rumao said...

set statement refers to a sas data set and is not used to create raw data set.
As Mark mentioned a raw data set can be created by put or file statement

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