Académique Documents
Professionnel Documents
Culture Documents
info@sastechies.com
http://www.sastechies.com
Creating
◦ SAS Tables,
◦ Listings,
◦ Basic Statistics Procedures with
SAS TLG’s
◦ Graphs
◦ ODS HTML
◦ Proc Report and Other Utility
Procedures
Use
ods listing close; - to close
ods listing; - to open
the Output and HTML
◦ BODY=file-specification
identifies the file that contains the
HTML output.
◦ FRAME=file-specification
◦ CONTENTS=file-specification
identifies the file that integrates the table identifies a table of contents that links
of contents, the page contents, and the to the body file.
body file. If you specify FRAME=, you must
specify CONTENTS= or PAGE= or both.
◦ PAGE=file-specification
identifies the file that contains a
description of each page of the body
file and links to the body file.
2
24
Almers, C F 34 3 66 152 HIGH
124 ods listing close;
62 .80
ods html
3
25 Bonavent
F 31 17 61 123 LOW
149 body='c:\records\data.html'(url='data.html')
01 ure, T .75 contents='c:\records\toc.html'(url='toc.html‘)
25 Johnson, 149 frame='c:\records\frame.html'
4 F 43 31 63 137 MOD
23 R .75 style=beige;
25 LaMance, 124 proc print data=clinic.admit label; var id sex
5
39 K
M 51 4 71 158 LOW
.80 age height weight actlevel; label
actlevel='Activity Level'; run;
6
25
Jones, M M 29 6 76 193 HIGH
124 proc print data=clinic.stress2; var id resthr
44 .80 maxhr rechr; run;
25 Reberson 149 ods html close; ods listing;
7 F 32 9 67 151 MOD
52 ,P .75
25 149
8 King, E M 35 13 70 173 MOD
55 .75
25 124
9 Pitts, D M 34 22 73 154 LOW
63 .80
25 Eberhardt 124
10 F 49 27 64 172 LOW
68 ,S .80
Deplaned 114 250 199 3,987 Revenue 106,753 198,744 159,478 3,189,554
Destination
Copenhagen Boarded 81 154 131 786
Copenhage Boarded 81 154 131 786
Transferre
n
d 5 21 13 75 Transferre
d 5 21 13 75
Deplaned 103 177 147 881
Deplaned 103 177 147 881
Revenue 109,885 196,540 139,951 839,705
Revenue 109,88 196,54 139,95
Frankfurt Boarded 129 210 170 1,190 5 0 1 839,705
Transferre Frankfurt Boarded 129 210 170 1,190
d 5 22 13 91
Transferre
Deplaned 147 237 188 1,314 d 5 22 13 91
Revenue 100,987 187,636 142,912 1,000,382 Deplaned 147 237 188 1,314
London Boarded 151 241 188 3,760 Revenue 100,98 187,63 142,91 1,000,38
7 6 2 2
Transferre
d 4 18 11 London
227 Boarded 151 241 188 3,760
Revenue 109,885 196,540 139,951 839,705 Deplaned 103 177 147 881
Frankfurt Boarded 129 210 170 1,190 Revenue 109,88 196,54 139,95
5 0 1 839,705
Transferre
d 5 22 13 91 Frankfurt Boarded 129 210 170 1,190
Paris Boarded 146 182 161 2,089 Deplaned 114 250 199 3,987
var revenue / style=<parent>{foreground=black};
Deplaned 147 237 188 1,314
table dest*(boarded transferred deplaned*{style={background=deplback.
flyover=deplflyo.}} revenue*{style=<parent>}),min max mean sum /
100,9 187,6 142,9 1,000,3 box={style={background=cxCCEEDD}};
8 3 1 8 keyword min max mean sum / style={background=cxCCEEDD
Revenue 7 6 2 2 font_style=italic};
label dest='Destination'; format dest $desname.; run;
Boarded 151 241 188 3,760 ods html close;
London ods listing;
Transferr
ed 4 18 11 227