SAS Chapter 20: Controlling Memory Usage

5 Questions | Attempts: 71
Share
Please wait...
Question 1 / 5
0 %
0/100
Score 0/100
1. The total number of bytes occupied by a data set equals…?

Explanation

The total number of bytes occupied by a data set equals the page size multiplied by the number of pages. You can use the CONTENTS procedure to report the page size and the number of pages.

Submit
Please wait...
About This Quiz
SAS Quizzes & Trivia

Practice for the SAS advance certification exam.

Personalize your quiz and earn a certificate with your name on it!
2. Which of the following statements is true regarding a file that is opened with the SASFILE statement?

Explanation

When a SAS data file is opened using the SASFILE statement, the data is held in memory, and is available to subsequent DATA and PROC steps or applications, until either a SASFILE CLOSE statement is executed or the program ends. Though a file that is opened with the SASFILE statement can be used for subsequent input or update processing, it cannot be used for subsequent utility or output processing. If the file in memory increases in size during processing, the number of buffers also increases.

Submit
3. Which statement opens the file Work.Quarter1, allocates enough buffers to hold the entire file in memory, and reads the data into memory?

Explanation

The SASFILE LOAD statement opens the file, allocates the buffers, and reads the data into memory.

Submit
4. Which of the following statements is true regarding the BUFNO= option?

Explanation

You can use the BUFNO= system option or data set option to control how many buffers are available for reading or writing a SAS data set. Using BUFNO= can improve execution time by limiting the number of input/output operations that are required for a particular SAS data set. However, the improvement in I/O comes at the cost of increased memory consumption. The buffer number is not a permanent attribute of the data set and is valid only for the current step or SAS session.

Submit
5. Which of the following statements is not true regarding a page?

Explanation

A page is fixed in size when the data set is created, either to a default value or a specified value. You can use the BUFSIZE= option to control the page size of an output SAS data set. BUFSIZE= specifies not only the page size (in bytes), but also the size of each buffer that is used for reading or writing the SAS data set. The new buffer size is permanent; after it is specified, it is used whenever the data set is processed.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 15, 2022 +

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

  • Current Version
  • Mar 15, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 03, 2013
    Quiz Created by
    Moxleyv
Cancel
  • All
    All (5)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
The total number of bytes occupied by a data set equals…?
Which of the following statements is true regarding a file that is...
Which statement opens the file Work.Quarter1, allocates enough...
Which of the following statements is true regarding the BUFNO= option?
Which of the following statements is not true regarding a page?
Alert!

Advertisement