SAS Chapter 8: Creating Enhanced 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,992
| Attempts: 484 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. Which attributes or options are reflected in this PROC REPORT output?

Explanation

The HEADLINE option underlines the headings, and HEADSKIP option skips a line between the headings and the rows in the report. Also, Style is centered, and the column for PRICE is wider than the default.

Submit
Please wait...
About This Quiz
SAS Chapter 8: Creating Enhanced Reports - Quiz

This quiz assesses skills in creating enhanced reports using SAS, focusing on PROC REPORT functionalities. It evaluates understanding of group and order variables, computed fields, and summarizing data, essential for effective data presentation and analysis in SAS.

Personalize your quiz and earn a certificate with your name on it!
2. When you define an order variable,

Explanation

Order variables do order rows according to the formatted values of the order variable, and PROC REPORT suppresses repetitious printing of order values. However, you can't use order variables in a summary report.

Submit
3. If you submit this program, where does your PROC REPORT output appear? proc report data=sasuser.houses nowd;    column style sqfeet bedrooms price;    define style / group; run;

Explanation

In nonwindowing mode, your PROC REPORT output appears as HTML and/or as SAS listing output, depending on your option settings.

Submit
4. To create a summary report that shows the average number of bedrooms and the maximum number of baths for each style of house, which DEFINE statements do you use in your PROC REPORT step?

Explanation

To create a summary report, you must define a group variable. To produce the statistics that you want, you must specify the MEAN and MAX statistics for Bedrooms and Baths.

Submit
5. Suppose you want to create a report using both character and numeric variables.  If you don't use any DEFINE statements in your PROC step,

Explanation

Unless you use DEFINE statements to define order variables or group variables, you can't order rows or produce summary reports. However, DEFINE statements are not required in PROC REPORT steps.

Submit
6. If Style has four unique values and you submit the following program, which output do you get?  (Assume that all other variables are numeric.) proc report data=sasuser.houses nowd;    column style sqfeet bedrooms price;    define style / group; run;

Explanation

This program creates a summary report, which consolidates into one row all observations from the data set that have a unique combination of values for the variable Style.

Submit
7. What output does this PROC REPORT step produce? proc report data=sasuser.houses nowd;    column style sqfeet bedrooms price; run;

Explanation

By default, PROC REPORT displays character variables as display variables. A report that contains one or more display variables has a detail row for each observation in the data set.

Submit
8. Which of the following programs produces this output?

Explanation

In this output, the table cells contain a frequency count for each unique value of an across variable, Style. You don't have to specify across variable values in your PROC REPORT step.

Submit
9. Which program does not contain an error?

Explanation

Program c correctly specifies a computed variable in the COLUMN statement, defines the variable in a DEFINE statement, and computes values using the form variable-name.statistic in a compute block.

Submit
10. How can you create output with headings that break as shown below?

Explanation

By default, columns for character variables are the same as the variable's length, and columns for numeric variables have a width of 9. So these headings split this way by default.

Submit
View My Results

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

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

  • Current Version
  • Mar 18, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jan 23, 2013
    Quiz Created by
    Moxleyv
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which attributes or options are reflected in this PROC REPORT output?
When you define an order variable,
If you submit this program, where does your PROC REPORT output appear?...
To create a summary report that shows the average number of bedrooms...
Suppose you want to create a report using both character and numeric...
If Style has four unique values and you submit the following program,...
What output does this PROC REPORT step produce?...
Which of the following programs produces this output?
Which program does not contain an error?
How can you create output with headings that break as shown below?
Alert!

Advertisement