Chapter Contents

Previous

Next
The PRINT Procedure

Example 1: Selecting Variables to Print


Procedure features:
PROC PRINT statement options:
DOUBLE
VAR statement

This example




Program

options nodate pageno=1 linesize=70 pagesize=60;
 Note about code
data exprev;
   input Region $ State $ Month monyy5.
         Expenses Revenues;
   format month monyy5.;
   datalines;
Southern GA JAN95 2000  8000
Southern GA FEB95 1200  6000
Southern FL FEB95 8500 11000
Northern NY FEB95 3000  4000
Northern NY MAR95 6000  5000
Southern FL MAR95 9800 13500
Northern MA MAR95 1500  1000
;
 Note about code
proc print data=exprev double;
 Note about code
   var month state expenses;
 Note about code
   title 'Monthly Expenses for Offices in Each State';
run;


Output
By default, PROC PRINT identifies each observation by number under the column heading Obs. [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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