Chapter Contents |
Previous |
Next |
The REPORT Procedure |
Interaction: | An ENDCOMP statement must mark the end of the group of statements in the compute block. |
Featured in: | Ordering the Rows in a Report , Using Aliases to Obtain Multiple Statistics for the Same Variable , Consolidating Multiple Observations into One Row of a Report , Creating a Column for Each Value of a Variable , Writing a Customized Summary on Each Page , and Calculating Percentages |
|
A compute block can be associated with a report item or with a location (at the top or bottom of a report; at the top or bottom of a page; before or after a set of observations). You create a compute block with the COMPUTE window or with the COMPUTE statement. One form of the COMPUTE statement associates the compute block with a report item. Another form associates the compute block with a location.
For a list of the SAS language elements that you can use in compute blocks, see The Contents of Compute Blocks .
Required Arguments |
Featured in: | Using Aliases to Obtain Multiple Statistics for the Same Variable and Writing a Customized Summary on Each Page |
Featured in: | Consolidating Multiple Observations into One Row of a Report and Creating a Column for Each Value of a Variable |
Options |
Note: You can use braces
({ and }) instead of square brackets ([ and ]).
Default: | If you do not specify a style element, PROC REPORT uses NoteContent. |
See also: | For information about Institute-supplied
style definitions, see What Style Definitions Are Shipped with the Software? .
For information about PROC TEMPLATE and the Output Delivery System, see The Complete Guide to the SAS Output Delivery System. |
style-attribute-name=style-attribute-value |
You can set the following style attributes in the STYLE= option in the COMPUTE statement:
ASIS= | FONT_WIDTH= |
BACKGROUND= | HREFTARGET= |
BACKGROUNDIMAGE= | HTMLCLASS= |
BORDERCOLOR= | JUST= |
BORDERCOLORDARK= | NOBREAKSPACE= |
BORDERCOLORLIGHT= | POSTHTML= |
BORDERWIDTH= | POSTIMAGE= |
CELLHEIGHT= | POSTTEXT= |
CELLWIDTH= | PREHTML= |
FLYOVER= | PREIMAGE= |
FONT= | PRETEXT= |
FONT_FACE= | PROTECTSPECIALCHARS= |
FONT_SIZE= | TAGATTR= |
FONT_STYLE= | URL= |
FONT_WEIGHT= | VJUST= |
Retriction: | This option affects only the HTML and Printer output. |
Featured in: | Specifying Style Elements for HTML Output in Multiple Statements |
When you specify a break variable, PROC REPORT executes the statements in the compute block each time the value of the break variable changes.
CENTER | centers each line that the compute block writes. | ||
LEFT | left-justifies each line that the compute block writes. | ||
RIGHT | right-justifies each line that the compute block
writes.
|
Featured in: | Writing a Customized Summary on Each Page |
CHARACTER <LENGTH=length> |
where
Alias: | CHAR |
Featured in: | Calculating Percentages |
Default: | 8 |
Range: | 1 to 200 |
Interaction: | If you specify a length, you must use CHARACTER to indicate that the computed variable is a character variable. |
Featured in: | Calculating Percentages |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.