📄 m40 - creating enhanced list and summary reports - 38 of 40.mht
字号:
attribute.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_18.htm">SPACING=3D=20
attribute</A> in the DEFINE statement. To define a column heading, =
specify=20
the <A onmouseover=3D"window.status=3D'Display details on column =
headings.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_20.htm">heading text =
in=20
quotation marks</A> in the DEFINE statement. To control how words =
break in=20
column headings, you can use a <A=20
onmouseover=3D"window.status=3D'Display details on split =
characters.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_21.htm">split=20
character</A> in the column label. For each variable that you =
define, you=20
can specify the <A=20
onmouseover=3D"window.status=3D'Display details on the =
justification option.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_22.htm">justification=
=20
option</A> CENTER, LEFT, or RIGHT in the DEFINE statement.=20
<P><STRONG>Enhancing the Heading's Appearance </STRONG><BR>To =
enhance=20
headings in your report, you can use the <A=20
onmouseover=3D"window.status=3D'Display details on the HEADLINE =
option.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_24.htm">HEADLINE=20
option</A>, which underlines all column headings and the spaces =
between=20
them, and the <A=20
onmouseover=3D"window.status=3D'Display details on the HEADSKIP =
option.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_24.htm">HEADSKIP=20
option</A>, which writes a blank line before the data values. =
These=20
options have no effect on HTML output.=20
<P><STRONG>Defining Variable Usage</STRONG><BR>PROC REPORT uses =
each=20
variable in one of six ways (DISPLAY, ORDER, GROUP, ACROSS, =
ANALYSIS, or=20
COMPUTED). By default, PROC REPORT uses character variables as =
display=20
variables, and it uses numeric variables as analysis variables, =
which are=20
used to calculate the SUM statistic. You can define <A=20
onmouseover=3D"window.status=3D'Display details on variable =
usage.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_26.htm">usage</A> =
for=20
variables in the DEFINE statement. =
</P></TD></TR></TBODY></TABLE><BR>
<CENTER>
<TABLE title=3D"Variable Usage in PROC REPORT" cellSpacing=3D0 =
cellPadding=3D3=20
width=3D"85%" bgColor=3D#ffffff border=3D1>
<TBODY>
<TR vAlign=3Dtop>
<TD bgColor=3D#f7f7de colSpan=3D2><STRONG>Variable Usage in PROC=20
REPORT</STRONG></TD></TR>
<TR vAlign=3Dtop>
<TD width=3D"23%"><STRONG><A=20
onmouseover=3D"window.status=3D'Display details on display =
variables.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_26.htm">Display<BR>va=
riables=20
<BR></A></STRONG></TD>
<TD width=3D"77%">do not affect the order of rows in the report. A =
report=20
that contains one or more display variables has a detail row for =
each=20
observation in the data set. Each detail row contains a value for =
each=20
display variable. By default, PROC REPORT treats all character =
variables=20
as display variables.</TD></TR>
<TR vAlign=3Dtop>
<TD width=3D"23%"><STRONG><A=20
onmouseover=3D"window.status=3D'Display details on order =
variables.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_27.htm">Order<BR>vari=
ables=20
</A></STRONG></TD>
<TD width=3D"77%">order the detail rows in a report according to =
their=20
formatted values. </TD></TR>
<TR vAlign=3Dtop>
<TD width=3D"23%"><STRONG><A=20
onmouseover=3D"window.status=3D'Display details on group =
variables.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_29.htm">Group<BR>vari=
ables=20
</A></STRONG></TD>
<TD width=3D"77%">order the detail rows in a report according to =
their=20
formatted values. If a report contains one or more group =
variables, PROC=20
REPORT tries to consolidate into one row all observations from the =
data=20
set that have a unique combination of values for all group =
variables.=20
</TD></TR>
<TR vAlign=3Dtop>
<TD width=3D"23%"><STRONG><A=20
onmouseover=3D"window.status=3D'Display details on across =
variables.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_34.htm">Across<BR>var=
iables=20
</A></STRONG></TD>
<TD width=3D"77%">are functionally similar to group variables; =
however, PROC=20
REPORT displays the groups that it creates for an across variable=20
horizontally rather than vertically. </TD></TR>
<TR vAlign=3Dtop>
<TD width=3D"23%"><STRONG><A=20
onmouseover=3D"window.status=3D'Display details on analysis =
variables.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_26.htm">Analysis<BR>v=
ariables=20
</A></STRONG></TD>
<TD width=3D"77%">are used to calculate a statistic. By default, =
PROC REPORT=20
uses numeric variables as analysis variables, which are used to =
calculate=20
the SUM statistic.</TD></TR>
<TR vAlign=3Dtop>
<TD width=3D"23%"><STRONG><A=20
onmouseover=3D"window.status=3D'Display details on computed =
variables.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_36.htm">Computed<BR>v=
ariables=20
</A></STRONG></TD>
<TD width=3D"77%">are variables that you define for the report. They =
are not=20
in the data set. You cannot change the usage of a computed =
variable.=20
Computed variables can be either numeric or character=20
variables.</TD></TR></TBODY></TABLE><BR></CENTER>
<P align=3Dcenter>
<CENTER>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
<TBODY>
<TR>
<TD><STRONG>Specifying Statistics</STRONG><BR>To <A=20
onmouseover=3D"window.status=3D'Display details on specifying =
statistics.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_32.htm">associate a=20
statistic with an analysis variable</A>, specify it as an =
attribute in the=20
DEFINE=20
statement.</TD></TR></TBODY></TABLE></CENTER><!-- InstanceEndEditable =
--><BR>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" align=3Dcenter =
border=3D0>
<TBODY>
<TR>
<TD align=3Dleft>
<HR>
</TD></TR></TBODY></TABLE>
<P><!-- InstanceBeginEditable name=3D"syntax" -->
<CENTER>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
<TBODY>
<TR>
<TD><STRONG><A name=3DSyntax>Syntax</A></STRONG>=20
<P><EM>To go to the page where a statement or option was =
presented, select=20
a link.</EM>=20
<DL>
<BLOCKQUOTE>
<DT><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the PROC =
REPORT statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_2.htm"><STRONG>PROC=20
REPORT</STRONG> =
<<STRONG>DATA</STRONG>=3D<EM>SAS-data-set</EM>>=20
<<EM>options</EM>></A>;</FONT>=20
<DD><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the COLUMN =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_5.htm"><STRONG>COLUMN=
</STRONG>=20
<EM>variable(s)</EM></A>;</FONT>=20
<DD><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the DEFINE =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_11.htm"><STRONG>DEFIN=
E</STRONG>=20
<EM>variable</EM> / <EM><usage> <attribute(s)>=20
<option(s)></EM></A></FONT>=20
<DD> <FONT =
color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the DEFINE =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_11.htm"><EM><justi=
fication>=20
<'column-heading'></EM></A>;</FONT>=20
<DD><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the COMPUTE =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_36.htm"><STRONG>COMPU=
TE</STRONG>=20
<EM>computed-variable</EM></A>;</FONT>=20
<DD> <FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the COMPUTE =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_36.htm"><EM>DATA=20
step statements</EM></A>;</FONT>=20
<DD><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the ENDCOMP =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m40/m40_36.htm"><STRONG>ENDCO=
MP</STRONG></A>;</FONT>=20
<DT><FONT color=3D#003399><STRONG>RUN</STRONG>;</FONT>=20
</DT></BLOCKQUOTE></DL></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
<TBODY>
<TR>
<TD align=3Dleft>
<HR>
</TD></TR></TBODY></TABLE><BR></CENTER><!-- InstanceEndEditable -->
<P><!-- InstanceBeginEditable name=3D"sampleprogram" -->
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
<TBODY>
<TR>
<TD align=3Dleft><STRONG><A name=3DSample>Sample =
Program</A></STRONG>=20
<P><PRE> <FONT color=3D#003399>proc report =
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -