Chapter Contents

Previous

Next
The PRINT Procedure

Procedure Syntax


Tip: Supports the Output Delivery System (see Chapter 2, "Fundamental Concepts for Using Base SAS Procedures")
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 PRINT <option(s)>;
BY <DESCENDING> variable-1 <...<DESCENDING> variable-n>
<NOTSORTED>;
PAGEBY BY-variable;
SUMBY BY-variable;
ID variable(s);
SUM variable(s);
VAR variable(s);

To do this Use this statement
Produce a separate section of the report for each BY group BY
Identify observations by the formatted values of the variables that you list instead of by observation numbers ID
Control page ejects that occur before a page is full PAGEBY
Limit the number of sums that appear in the report SUMBY
Total values of numeric variables SUM
Select variables that appear in the report and determine their order VAR


Chapter Contents

Previous

Next

Top of Page

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