Previous Page | Next Page

The REPORT Procedure

Syntax: REPORT Procedure


Tip: Supports the Output Delivery System. See Output Delivery System: Basic Concepts in SAS Output Delivery System: User's Guide for details.
Tip: You can use the ATTRIB, FORMAT, LABEL, and WHERE statements. See Statements with the Same Function in Multiple Procedures for details. You can also use any global statements. See Global Statements for a list.
Table of Contents: The REPORT Procedure

PROC REPORT <option(s)>;
BREAK location break-variable</ option(s)>;
BY <DESCENDING> variable-1
<...<DESCENDING> variable-n> <NOTSORTED>;
COLUMN column-specification(s);
COMPUTE location <target>
</ STYLE=<style-element-name>
<[style-attribute-specification(s)]>>;
LINE specification(s);
. . . select SAS language elements . . .
ENDCOMP;
COMPUTE report-item </ type-specification>;
CALL DEFINE (column-id, 'attribute-name', value);
. . . select SAS language elements . . .
ENDCOMP;
DEFINE report-item / <usage>
<attribute(s)>
<option(s)>
<justification>
<COLOR=color>
<'column-header-1' <...'column-header-n'>>
<style>;
FREQ variable;
RBREAK location </ option(s)>;
WEIGHT variable;

Task Statement
Produce a summary or detail report PROC REPORT
Produce a default summary at a change in the value of a group or order variable BREAK
Create a separate report for each BY group BY
Set the value of an attribute for a particular column in the current row CALL DEFINE
Describe the arrangement of all columns and of headings that span more than one column COLUMN
Specify one or more programming statements that PROC REPORT executes as it builds the report COMPUTE and ENDCOMP
Describe how to use and display a report item DEFINE
Treat observations as if they appear multiple times in the input data set FREQ
Provide a subset of features of the PUT statement for writing customized summaries LINE
Produce a default summary at the beginning or end of a report or at the beginning and end of each BY group RBREAK
Specify weights for analysis variables in the statistical calculations WEIGHT

Previous Page | Next Page | Top of Page