Chapter Contents

Previous

Next
The REPORT Procedure

Procedure Syntax


Tip: Supports the Output Delivery System. (See Output Delivery System for details.)
Reminder: 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 as well. See Global Statements for a list.

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;

To do this Use this statement
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 headers 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


Chapter Contents

Previous

Next

Top of Page

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