SAS Chapter 22: Using Best Practices

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: 106 | Questions: 5
Please wait...
Question 1 / 5
0 %
0/100
Score 0/100
1. For selecting observations, is a subsetting IF statement or a WHERE statement more efficient? Why?

Explanation

For selecting observations, a WHERE statement is more efficient than a subsetting IF statement because it examines what is in the input buffer and selects observations before they are loaded into the program data vector, which results in a savings in CPU operations.

Submit
Please wait...
About This Quiz
SAS Chapter 22: Using Best Practices - Quiz


In our ongoing SAS quiz series, we turn our attention to the different practices and which is the best to use in a given situation. What do you... see moreknow about IF statements, PROC DATASETS, WHERE statements and more? see less

2. Which of the following statements is true about techniques that are used for modifying data and attributes?

Explanation

The DATA step is the only technique that can be used to modify both data values and variable attributes. The DATASETS procedure enables you to modify only variable attributes.

Submit
3. When is it more advantageous to create a temporary SAS data set rather than a permanent SAS data set?

Explanation

It is more advantageous to create a temporary SAS data set rather than a permanent SAS data set when the external file on which the data set is based is frequently updated between SAS sessions.

Submit
4. Placing the subsetting IF statement at the top rather than near the bottom of a DATA step results in a savings in CPU usage. What happens if the subset is large rather than small?

Explanation

As SAS processes a larger subset of the data, more CPU resources are required. However, positioning of the subsetting IF statement in a DATA step does affect performance and efficiency.

Submit
5. When you compare the technique of using multiple DATASETS procedures to using a single DATASETS procedure to modify the descriptor portion of a data set, which is true?

Explanation

A one-step DATASETS procedure results in a savings of CPU usage and I/O operations. PROC DATASETS supports RUN-group processing, which enables you to process multiple SAS data sets from the same library with one invocation of the procedure.

Submit
View My Results

Quiz Review Timeline (Updated): Dec 6, 2023 +

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

  • Current Version
  • Dec 06, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 10, 2013
    Quiz Created by
    Moxleyv
Cancel
  • All
    All (5)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
For selecting observations, is a subsetting IF statement or a WHERE...
Which of the following statements is true about techniques that are...
When is it more advantageous to create a temporary SAS data set rather...
Placing the subsetting IF statement at the top rather than near the...
When you compare the technique of using multiple DATASETS procedures...
Alert!

Advertisement