BREAK

Controls PROC REPORT's actions at a change in the value of a group or order variable or at the top or bottom of a report.

Details

Path

Editthen selectSummarize information
After you select Summarize information, PROC REPORT offers you four choices for the location of the break:
  • Before Item
  • After Item
  • At the top
  • At the bottom
After you select a location, the BREAK window appears.
Note: To create a break before or after detail lines (when the value of a group or order variable changes), you must select a variable before you open the BREAK window.

Description

BREAK Window
Note: For information about changing the formatting characters that are used by the line drawing options in this window, see the discussion of FORMCHAR <(position(s))>='formatting-character(s)'

Options

Overline summary
uses the second formatting character to overline each value
  • that appears in the summary line
  • that would appear in the summary line if you specified the SUMMARIZE option
Default:hyphen (-)
Interaction:If you specify options to overline and to double overline, then PROC REPORT overlines.
Double overline summary
uses the 13th formatting character to overline each value
  • that appears in the summary line
  • that would appear in the summary line if you specified the SUMMARIZE option
Default:equal sign (=)
Interaction:If you specify options to overline and to double overline, then PROC REPORT overlines.
Underline summary
uses the second formatting character to underline each value
  • that appears in the summary line
  • that would appear in the summary line if you specified the SUMMARIZE option
Default:hyphen (-)
Interaction:If you specify options to underline and to double underline, then PROC REPORT underlines.
Double underline summary
uses the 13th formatting character to underline each value
  • that appears in the summary line
  • that would appear in the summary line if you specified the SUMMARIZE option
Default:equal sign (=)
Interaction:If you specify options to underline and to double underline, then PROC REPORT underlines.
Skip line after break
writes a blank line for the last break line.
This option has no effect if you use it in a break at the end of a report.
Page after break
starts a new page after the last break line. This option has no effect in a break at the end of a report.
Interaction:If you use this option in a break on a variable and you create a break at the end of the report, then the summary for the whole report is on a separate page.
Summarize analysis columns
writes a summary line in each group of break lines. A summary line contains values for
  • statistics
  • analysis variables
  • computed variables
A summary line between sets of observations also contains
  • the break variable (which you can suppress with Suppress break value)
  • other group or order variables to the left of the break variable.
The following table shows how PROC REPORT calculates the value for each type of report item in a summary line created by the BREAK window:
Report Item
Resulting Value
The break variable
The current value of the variable (or a missing value if you select suppress break value)
A group or order variable to the left of the break variable
The current value of the variable
A group or order variable to the right of the break variable, or a display variable anywhere in the report
Missing*
A statistic
The value of the statistic over all observations in the set
An analysis variable
The value of the statistic specified as the usage option in the item's definition. PROC REPORT calculates the value of the statistic over all observations in the set. The default usage is SUM.
A computed variable
The results of the calculations based on the code in the corresponding compute block. (See the COMPUTE Statement statement.)
*If you reference a variable with a missing value in a customized summary line, then PROC REPORT displays that variable as a blank (for character variables) or a period (for numeric variables).
Suppress break value
suppresses printing of
  • the value of the break variable in the summary line
  • any underlining and overlining in the break lines in the column containing the break variable
If you select Suppress break value, then the value of the break variable is unavailable for use in customized break lines unless you assign it a value in the compute block that is associated with the break.

Color

From the list of colors, select the one to use in the REPORT window for the column heading and the values of the item that you are defining. The default is the color of Foreground in the SASCOLOR window. (For more information, see the online Help for the SASCOLOR window.)
Note: Not all operating environments and devices support all colors, and in some operating environments and devices, one color might map to another color. For example, if the DEFINITION window displays the word BROWN in yellow characters, then selecting BROWN results in a yellow item.

Buttons

Edit Program
opens the COMPUTE window and enables you to associate a compute block with a location in the report.
OK
applies the information in the BREAK window to the report and closes the window.
Cancel
closes the BREAK window without applying information to the report.