Creating List Reports |
Creating a Basic
Report |
To produce a simple list report, you first reference the library where your SAS data set is stored. If you want, you can also set system options to control the appearance of your reports. Then you submit a basic PROC PRINT step. |
where SAS-data-set is the name of the SAS data set to be printed. |
In the program below, the PROC PRINT statement invokes the
PRINT procedure and specifies the data set Therapy in the
SAS data library assigned the libref Patients.
libname patients 'your-SAS-library'; proc print data=patients.therapy; run; Notice the layout of the resulting report. By default,
|
Obs | Date | AerClass | WalkJogRun | Swim |
1 | JAN1999 | 56 | 78 | 14 |
2 | FEB1999 | 32 | 109 | 19 |
3 | MAR1999 | 35 | 106 | 22 |
4 | APR1999 | 47 | 115 | 24 |
5 | MAY1999 | 55 | 121 | 31 |
6 | JUN1999 | 61 | 114 | 67 |
7 | JUL1999 | 67 | 102 | 72 |
8 | AUG1999 | 64 | 76 | 77 |
9 | SEP1999 | 78 | 77 | 54 |
10 | OCT1999 | 81 | 62 | 47 |
11 | NOV1999 | 84 | 31 | 52 |
12 | DEC1999 | 2 | 44 | 55 |
13 | JAN2000 | 37 | 91 | 83 |
14 | FEB2000 | 41 | 102 | 27 |
15 | MAR2000 | 52 | 98 | 19 |
16 | APR2000 | 61 | 118 | 22 |
17 | MAY2000 | 49 | 88 | 29 |
18 | JUN2000 | 24 | 101 | 54 |
19 | JUL2000 | 45 | 91 | 69 |
20 | AUG2000 | 63 | 65 | 53 |
21 | SEP2000 | 60 | 49 | 68 |
22 | OCT2000 | 78 | 70 | 41 |
23 | NOV2000 | 82 | 44 | 58 |
24 | DEC2000 | 93 | 57 | 47 |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.