Chapter Contents

Previous

Next
The REPORT Procedure

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.


Path

Edit
[arrow]
Summarize information

After you select Summarize Information, PROC REPORT offers you four choices for the location of the break:

After you select a location, the BREAK window opens.

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.  [cautionend]


Description

[IMAGE]

Note:   For information about changing the formatting characters that are used by the line drawing options in this window, see the discussion of FORMCHAR= .  [cautionend]


Options

Overline summary
uses the second formatting character to overline each value

Default: hyphen (-)
Interaction: If you specify options to overline and to double overline, PROC REPORT overlines.

Double overline summary
uses the thirteenth formatting character to overline each value

Default: equals sign (=)
Interaction: If you specify options to overline and to double overline, PROC REPORT overlines.

Underline summary
uses the second formatting character to underline each value

Default: hyphen (-)
Interaction: If you specify options to underline and to double underline, PROC REPORT underlines.

Double underline summary
uses the thirteenth formatting character to underline each value

Default: equals sign (=)
Interaction: If you specify options to overline and to double overline, PROC REPORT overlines.

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, 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

A summary line between sets of observations also contains

The following table shows how PROC REPORT calculates the value for each kind of report item in a summary line created by the BREAK window:

If the report item is ... Then its value is ...
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 COMPUTE Statement ).
*If you reference a variable with a missing value in a customized summary line, PROC REPORT displays that variable as a blank (for character variables) or a period (for numeric variables).

Suppress break value
suppresses printing of

If you select Suppress break value, the value of the break variable is unavailable for use in customized break lines unless you assign it a value in the compute block associated with the break.


Color
From the list of colors, select the one to use in the REPORT window for the column header and the values of the item that you are defining.

Default: 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 may map to another color. For example, if the DEFINITION window displays the word BROWN in yellow characters, selecting BROWN results in a yellow item.


Pushbuttons

[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.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.