Select the best answer
for each question. Check your answers using the answer key in the
appendix.
-
How long do librefs
remain in effect?
-
until the LIBNAME statement
is changed
-
until the LIBNAME statement
is cleared
-
until the SAS session
ends
-
-
Which of the following
statements are true?
-
When using the default
engine, you do not have to specify the libref in the LIBNAME statement.
-
When using the default
engine, you do not have to specify the engine name in the LIBNAME
statement.
-
When using the default
engine, you do not have to specify the SAS library in the LIBNAME
statement.
-
When using the default
engine, you have to specify the libref, engine name, and the SAS library
in the LIBNAME statement.
-
When you specify an
engine for a library, what are you specifying?
-
the file format for
files that are stored in the library
-
the version of SAS that
you are using
-
permission to access
to other software vendors' files
-
instructions for creating
temporary SAS files
-
Which statement prints
a summary of all the files stored in the library named Area51?
-
proc contents data=area51._all_ nods;
-
proc contents data=area51 _all_ nods;
-
proc contents data=area51 _all_ noobs;
-
proc contents data=area51 _all_.nods;
-
Which of the following
programs correctly references a SAS data set named SalesAnalysis that
is stored in a permanent SAS library?
-
data saleslibrary.salesanalysis;
set mydata.quarter1sales;
if sales>100000;
run;
-
data mysales.totals;
set sales_2017.salesanalysis;
if totalsales>50000;
run;
-
proc print data=salesanalysis.quarter1;
var sales salesrep month;
run;
-
proc freq data=2017data.salesanalysis;
tables quarter*sales;
run;
-
-
What type of information
does the CONTENTS procedure create?
-
the contents of a library
-
descriptor information
for an individual SAS data set
-
-
-
Assuming you are using
SAS code, which one of the following statements is false?
-
LIBNAME statements can
be stored with a SAS program to reference the SAS library automatically
when you submit the program.
-
When you delete a libref,
SAS no longer has access to the files in the library. However, the
contents of the library still exist on your operating system.
-
Librefs can last from
one SAS session to another.
-
You can access files
that were created with other vendors' software by submitting a LIBNAME
statement.
-
What does the following
statement do?
libname states 'c:myfilessasdatapopstats';
-
defines a library called
States using the Popstats engine
-
defines a library called
Popstats using the States engine
-
defines the default
library using the default engines
-
defines a library called
States using the default engine