raw data file, cert question

Accepted Solution Solved
Reply
Valued Guide
Posts: 860
Accepted Solution

raw data file, cert question

Hello.  I am sitting for the base cert tomorrow and in my review I come across the following question.  I am skeptical that this is correct:

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

A) filename

B) libname

C) infile

D) set

Answer=

D

I can create a raw data file without a set statement so I didn't think this was correct.  I was thinking it would be the 'file' statement, or possibly 'put'.  Any insight to this question would be very helpful.

Thank You,


Accepted Solutions
Solution
‎03-13-2013 01:14 PM
Contributor
Posts: 22

Re: raw data file, cert question

Posted in reply to Steelers_In_DC

Among them, set is a closer answer.

View solution in original post


All Replies
Solution
‎03-13-2013 01:14 PM
Contributor
Posts: 22

Re: raw data file, cert question

Posted in reply to Steelers_In_DC

Among them, set is a closer answer.

Valued Guide
Posts: 860

Re: raw data file, cert question

Thanks,

Super Contributor
Posts: 1,636

Re: raw data file, cert question

Posted in reply to Steelers_In_DC

How could you create a raw file without SET statement (excluding proc export)?  Best of the luck with your exam!

Respected Advisor
Posts: 3,799

Re: raw data file, cert question

filename FT15F001 temp;
parmcards;
I am a data file created without SET.
;;;;
Super Contributor
Posts: 1,636

Re: raw data file, cert question

Posted in reply to data_null__

OK, I changed my condition:

How would you create a raw file from a sas dataset without using SET statement (excluding proc export)?

Respected Advisor
Posts: 4,930

Re: raw data file, cert question

, does Excel count as raw data?

PG
Super Contributor
Posts: 1,636

Re: raw data file, cert question

By my definition, only files with extension .dat and .txt.:smileysilly:

Respected Advisor
Posts: 4,930

Re: raw data file, cert question

I tried using the OLEDB and ODBC engines to create text files (.csv) but that didn't work.

The only way I can think of is :

ods listing file="Consultations\SAS Community\Reports\test.txt" style=normalPrinter;

options nodate nonumber formchar="|----|+|---+=|-/\<>*";

title;

proc sql;

select * from sashelp.class;

quit;

ods listing close;

PG

PG
Valued Guide
Posts: 860

Re: raw data file, cert question

Posted in reply to Steelers_In_DC

Linlin, I see your point but that's not the way the original question is worded.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 9 replies
  • 488 views
  • 0 likes
  • 5 in conversation