Chapter Contents

Previous

Next
The PRINT Procedure

Example 3: Creating Separate Sections of a Report for Groups of Observations


Procedure features:
PROC PRINT statement options:
LABEL
N=
NOOBS
BY statement
PAGEBY statement
Other features:
SORT procedure
LABEL statement
Data set: EXPREV

This example





Program

options pagesize=60 pageno=1 nodate linesize=70;
 Note about code
proc sort data=exprev;
   by region state month;
run;
 Note about code
proc print data=exprev n='Number of observations for the state: ' 
           noobs label;



 Note about code
   var month expenses revenues;
 Note about code
   by region state;
   pageby region;


 Note about code
   label region='Sales Region';



 Note about code
   format revenues expenses comma10.;
   title 'Sales Figures Grouped by Region and State';
run;


Output
[HTML Output]  [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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