SAS Chapter 4: Creating List Reports

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,991
| Attempts: 424 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. Which of the following statements selects from a data set only those observations for which the value of the variable Style is RANCH, SPLIT, or TWOSTORY?

Explanation

In the WHERE statement, the IN operator enables you to select observations based on several values. You specify values in parenthesis ans separated by spaces or commas. Character values must be enclosed in quotation marks and must be in the same case as in the data set.

Submit
Please wait...
About This Quiz
SAS Chapter 4: Creating List Reports - Quiz

This quiz assesses skills in creating list reports using SAS, focusing on PROC PRINT steps. It evaluates understanding of data labeling, selection, sorting, and output customization. Essential for... see morelearners aiming to master SAS reporting techniques. see less

2. If you want to sort your data and create a temporary data set named Calc to store the sorted data, which of the following steps should you submit?

Explanation

In a PROC SORT step, you specify the DATA= option to specify the data set to sort. The OUT= option specifies an output data set. The required BY statement specifies the variable(s) to use in sorting the data.

Submit
3. Which of the following PROC PRINT steps is correct if labels are not stored with the data set?

Explanation

You use the DATA= option to specify the data set to be printed. The LABEL option specifies that variable labels appear in output instead of variable names.

Submit
4. What happens if you submit the following program? proc sort data=clinic.diabetes; run; proc print data=clinic.diabetes;      var age height weight pulse;      where sex='F'; run;

Explanation

The BY statement is required in PROC SORT. Without it, the PROC SORT step fails. However, the PROC PRINT step prints the original data set as requested.

Submit
5. What does PROC PRINT display by default?

Explanation

You can remove the column for observation numbers. You can also specify the variables you want, and you can select observations according to conditions.

Submit
6. Which of the following statements can you use in a PROC PRINT step to create this output?

Explanation

You do not need to name the variables in a VAR statement if you specify them in the SUM statement, but you can. If you choose not to name the variables in the VAR statement as well, then the SUM statement determines their order in the output.

Submit
7. Which PROC PRINT step below creates the following output

Explanation

The DATA= option specifies the data set that you are listing, and the ID statement replaces the Obs column with the specified variable. The VAR statement specifies variables and controls the order in which they appear, and the WHERE statement selects rows based on a condition. The LABEL option in the PROC PRINT statement causes the labels specified in the LABEL statement to be displayed.

Submit
8. If you submit the following program, which output does it create? proc sort data=finance.loans out=work.loans;      by months amount; run; proc print data=work.loans noobs;      var months;      sum amount payment;      where months<360; run;

Explanation

Column totals appear at the end of the report in the same format as the values of the variables, so b is incorrect. Work.Loans is sorted by the Month and Amount, so c is incorrect. The program sums both Amount and Payment, so d is incorrect.

Submit
9. Which options are used to create the following PROC PRINT output?

Explanation

The DATE and NONUMBER system options cause the output to appear with the date but without page numbers. In the PROC PRINT step, the DOUBLE option specifies double spacing, and the NOOBS option removes the default Obs column.

Submit
10. Choose the statement below that selects rows in which 
  • the amount is less than or equal to $5000
  • the account is 101-1092 or the rate equals 0.095.

Explanation

To ensure that the compound expression is evaluated correctly, you can use parentheses to group (account='101-1092' or rate eq 0.095)

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 14, 2013
    Quiz Created by
    Moxleyv
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which of the following statements selects from a data set only those...
If you want to sort your data and create a temporary data set named...
Which of the following PROC PRINT steps is correct if labels are not...
What happens if you submit the following program?...
What does PROC PRINT display by default?
Which of the following statements can you use in a PROC PRINT step to...
Which PROC PRINT step below creates the following output
If you submit the following program, which output does it create?...
Which options are used to create the following PROC PRINT output?
Choose the statement below that selects rows in which ...
Alert!

Advertisement