Report-Writing Procedures

The following table lists report-writing procedures according to the type of report.
Report-Writing Procedures by Task
Report Type
Procedure
Description
Detail reports
PRINT
Produces data listings quickly; can supply titles, footnotes, and column sums.
REPORT
Offers more control and customization than PROC PRINT; can produce both column and row sums; has DATA step computation abilities.
SQL
Combines Structured Query Language and SAS features such as formats; can manipulate data and create a SAS data set in the same step that creates the report; can produce column and row statistics; does not offer as much control over output as PROC PRINT and PROC REPORT.
Summary reports
MEANS or SUMMARY
Computes descriptive statistics for numeric variables; can produce a printed report and create an output data set.
PRINT
Produces only one summary report; can sum the BY variables.
QDEVICE
Produces reports about graphics devices and universal printers.
REPORT
Combines features of the PRINT, MEANS, and TABULATE procedures with features of the DATA step in a single report-writing tool that can produce a variety of reports; can also create an output data set.
SQL
Computes descriptive statistics for one or more SAS data sets or DBMS tables; can produce a printed report or create a SAS data set.
TABULATE
Produces descriptive statistics in a tabular format; can produce stub-and-banner reports (multidimensional tables with descriptive statistics); can also create an output data set.
Miscellaneous highly formatted reports
Calendars
CALENDAR
Produces schedule and summary calendars; can schedule tasks around nonwork periods and holidays, weekly work schedules, and daily work shifts.
Multipanel reports (telephone book listings)
REPORT
Produces multipanel reports.
Low-resolution graphical reports 1
CHART
Produces bar charts, histograms, block charts, pie charts, and star charts that display frequencies and other statistics.
PLOT
Produces scatter diagrams that plot one variable against another.
TIMEPLOT
Produces plots of one or more variables over time intervals.
1These reports quickly produce a simple graphical picture of the data. To produce high-resolution graphical reports, use SAS/GRAPH software.