The DOCUMENT Procedure |
Procedure features: |
| |||||||||||
ODS destinations: |
| |||||||||||
Procedure output: |
|
Program Description |
This example shows you how to do these tasks:
generate PROC STANDARD output to the DOCUMENT destination
view the table template that describes how to display the PROC STANDARD output
create an ODS document
open an ODS document
list the BY group entries in an ODS document
Program |
options nodate nonumber; ods document name=mydocument(write); |
ods listing close; proc standard mean=80 std=5 out=StndScore print; |
by section student; var stest1-stest3; run; |
ods document close; |
ods listing; proc document name=mydocument; list/ levels=all bygroups; obtempl \Standard#1\ByGroup1#1\Standard#1; run; |
quit; |
Output |
Listing of WORK.MyDocument without the BYGROUPS Option Specified
Listing of WORK.MyDocument with the BYGROUPS Option Specified
Listing View of the Table Template Associated with PROC STANDARD Output
proc template; define table Base.Standard; notes "Table template for PROC Standard."; column name mean std n label; define name; header = "Name"; varname = Name; style = RowHeader; end; define mean; header = "Mean"; format = D12.; varname = Mean; end; define std; header = "/Standard/Deviation"; format = D12.; varname = stdDev; end; define n; header = "N"; format = best.; end; define label; header = "Label"; varname = Label; end; required_space = 3; byline; wrap; end; run;
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.