SAS Chapter 2 Referencing Files And Setting Options

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Moxleyv
M
Moxleyv
Community Contributor
Quizzes Created: 38 | Total Attempts: 21,992
| Attempts: 501 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. Which statement prints a summary of all the files stored in the library named Area51?

Explanation

To print a summary of library contents with the CONTENTS procedure, use a period to append the _ALL_ option to the libref. Adding the NODS option suppresses detailed information about the files.

Submit
Please wait...
About This Quiz
SAS Chapter 2 Referencing Files And Setting Options - Quiz

This SAS Chapter 2 quiz assesses skills in referencing files and setting options in SAS programming. It covers PROC TABULATE and PROC MEANS, HTML output creation, and system... see moreoptions understanding, essential for efficient data management and analysis. see less

2. If you submit the following program, how does the output look? options pagesize=55 nonumber; proc tabulate data=clinic.admit;      class actlevel;      var age height weight;     table actlevel,(age height weight)*mean; run; options linesize=80; proc means data=clinic.heart min max maxdec=1;      var arterial heart cardiac urinary;      class survive sex; run;

Explanation

When you specify a system option, it remains in effect until you change the option or end your SAS session, so both PROC steps generate output that is printed 55 lines per page with no page numbers. If you don't specify a system option, SAS uses the default value for that system option.

Submit
3. Which time span is used to interpret the two-digit year values if the YEARCUTOFF= option is set to 1950?

Explanation

The YEARCUTOFF= option specifies which 100-year span is used to interpret two-digit year values. The default value of YEARCUTOFF= to the first year of another 100-year span. If you specify YEARCUTOFF= 1950, then the 100-year span will be from 1950 to 2049.

Submit
4. When you specify an engine for a library, you are always specifying

Explanation

A SAS engine is a set of internal instructions that SAS uses for writing to and reading from files in a SAS library. Each engine specifies the file format for files that are stored in the library, which in turn enables SAS to access files with a particular format. Some engines access SAS files, and other engines support access to other vendors' files.

Submit
5. What does the following statement do? libname osiris spss 'c:\myfiles\sasdata\data';

Explanation

In the LIBNAME statement, you specify the library name before the engine name. Both are followed by the path.

Submit
6. The following PROC Print output was created immediately after PROC TABULATE output.  Which system options were specified when the report was created?

Explanation

Clearly, the DATE and NUMBER(page number) options are specified. Because the page number on the output is 1, even though the PROC TABULATE output was just produced, PAGENO=1 must also have been specifed. If you don't specify PAGENO=, all output in the Output window is numbered sequentially throughout your SAS session.

Submit
7. Which of the following programs correctly references a SAS data set named SalesAnalysis that is stored in a permanent SAS library?

Explanation

Librefs must be 1 to 8 characters long, must begin with a letter or underscore and can contain only letters, numbers, or underscores. After you assign a libref, you specify it as the first element in the two-level name for a SAS file.

Submit
8. Assuming you are using SAS code and not special SAS windows, which one of the following statements is false?

Explanation

The LIBNAME statement is global, ehich means that librefs remain in effect until you modify them, cancel them, or end your SAS session. Therefore, the LIBNAME statement assigns the libref for the current SAS session only. You must assign a libref before accessing SAS files that are stored in a permanent SAS data library.

Submit
9. How can you create SAS output in HTML format on any SAS platform?

Explanation

You can create HTML output using programming statements on any SAS platform. In addition, on all except mainframe platforms, you can use SAS windows to specify HTML as a result format.

Submit
10. In order for the date values 05May1955 and 04Mar2046 to be read correctly, what value must the YEARCUTOFF= option have?

Explanation

As long as you specify an informat with the correct field width for reading the entire date value, the YEARCUTOFF= option doesn't affect date values that have four-digit years.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 22, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jan 09, 2013
    Quiz Created by
    Moxleyv
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which statement prints a summary of all the files stored in the...
If you submit the following program, how does the output look?...
Which time span is used to interpret the two-digit year values if the...
When you specify an engine for a library, you are always specifying
What does the following statement do?...
The following PROC Print output was created immediately after PROC...
Which of the following programs correctly references a SAS data set...
Assuming you are using SAS code and not special SAS windows, which one...
How can you create SAS output in HTML format on any SAS platform?
In order for the date values 05May1955 and 04Mar2046 to be read...
Alert!

Advertisement