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,
Among them, set is a closer answer.
Among them, set is a closer answer.
Thanks,
How could you create a raw file without SET statement (excluding proc export)? Best of the luck with your exam!
OK, I changed my condition:
How would you create a raw file from a sas dataset without using SET statement (excluding proc export)?
By my definition, only files with extension .dat and .txt.:smileysilly:
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
Linlin, I see your point but that's not the way the original question is worded.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.