Previous Page | Next Page

The PRINT Procedure

Syntax: PRINT 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 PRINT Procedure

PROC PRINT <option(s)>;
BY <DESCENDING> variable-1 <...<DESCENDING> variable-n><NOTSORTED>;
PAGEBY BY-variable;
SUMBY BY-variable;
ID variable(s) <option>;
SUM variable(s) <option>;
VAR variable(s) <option>;

Task Statement
Print observations in a data set. PROC PRINT
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

Previous Page | Next Page | Top of Page