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 know about IF statements, PROC DATASETS, WHERE statements and more?
The savings in CPU usage increases as the subset grows larger because the I/O increases.
The savings in CPU usage decreases as the subset grows larger. However, placing the subsetting IF statement at the top of a DATA step always uses fewer resources than placing it at the bottom.
The savings in CPU usage remains constant as the subset grows larger. However, placing the subsetting IF statement near the bottom of a data set is preferable.
The savings in CPU usage decreases as the subset grows larger. However, placing the subsetting IF statement near the bottom of a data set increases the I/O.
Rate this question:
You can use PROC DATASETS to modify both data values and variable attributes.
You can use PROC DATASETS to modify only data values.
You can use the DATA step to modify both data values and variable attributes.
You can use the DATA step to modify only variable attributes.
Rate this question:
A subsetting IF statement is more efficient because it loads all observations sequentially into the program data vector.
A subsetting IF statement is more efficient 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.
A WHERE statement is more efficient because it loads all observations sequentially into the program data vector.
A WHERE statement is more efficient 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.
Rate this question:
When the external file on which the data set is based might change between SAS sessions.
When the external file on which the data set is based does not change between SAS sessions.
When the data set is needed for more than one SAS session.
When you are converting raw numeric values to SAS data values.
Rate this question:
A one-step DATASETS procedure results in an increase in I/O operations.
Multiple DATASETS procedures result in a decrease in I/O operations.
A one-step DATASETS procedure results in a decrease in CPU usage.
Multiple DATASETS procedures result in a decrease in CPU usage.
Rate this question:
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.