📄 m04 - creating list reports - 53 of 55.mht
字号:
<STRONG>'</STRONG><EM>SAS-data-library</EM><STRONG>';</STRONG></FON=
T>=20
<DT><FONT color=3D#003399><STRONG>OPTIONS</STRONG>=20
<EM>options</EM><STRONG>;</STRONG></FONT>=20
<DT><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the PROC =
SORT statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_16.htm"><STRONG>PROC=20
SORT DATA=3D</STRONG><EM>SAS-data-set</EM>=20
=
<STRONG>OUT=3D</STRONG><EM>SAS-data-set</EM><STRONG>;</STRONG></A></FONT>=
=20
<DD><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the BY =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_16.htm"><STRONG>BY</STR=
ONG>=20
<EM>variable(s)</EM><STRONG>;</STRONG></A></FONT>=20
<DT><FONT color=3D#003399><STRONG>RUN;</STRONG></FONT>=20
<DT><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the TITLE =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_32.htm"><STRONG>TITLE</=
STRONG><<EM>n</EM>>=20
<EM>'text'</EM><STRONG>;</STRONG></A></FONT>=20
<DT><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the =
FOOTNOTE statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_32.htm"><STRONG>FOOTNOT=
E</STRONG><<EM>n</EM>>=20
<EM>'text'</EM><STRONG>;</STRONG></A></FONT>=20
<DT><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the PROC =
PRINT statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_2.htm"><STRONG>PROC=20
PRINT DATA=3D</STRONG><EM>SAS-data-set</EM></A></FONT>=20
<DD><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the NOOBS =
option.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_8.htm#noobs"><STRONG>NO=
OBS</STRONG></A> <A=20
onmouseover=3D"window.status=3D'Display details on the LABEL =
option.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_41.htm"><STRONG>LABEL</=
STRONG></A>=20
<A=20
onmouseover=3D"window.status=3D'Display details on the DOUBLE =
option.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_30.htm"><STRONG>DOUBLE;=
</STRONG></A></FONT>=20
<DD><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the ID =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_9.htm"><STRONG>ID</STRO=
NG>=20
<EM>variable</EM></A><A=20
onmouseover=3D"window.status=3D'Display details on the BY =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_16.htm"><EM>(s)</EM></A=
><A=20
onmouseover=3D"window.status=3D'Display details on the ID =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_9.htm"><STRONG>;</STRON=
G></A></FONT>=20
<DD><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the VAR =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_6.htm"><STRONG>VAR</STR=
ONG>=20
<EM>variable</EM></A><A=20
onmouseover=3D"window.status=3D'Display details on the BY =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_16.htm"><EM>(s)</EM></A=
><A=20
onmouseover=3D"window.status=3D'Display details on the VAR =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_6.htm"><STRONG>;</STRON=
G></A></FONT>=20
<DD><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the WHERE =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_11.htm"><STRONG>WHERE</=
STRONG>=20
<EM>where-expression</EM><STRONG>;</STRONG></A></FONT>=20
<DD><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the SUM =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_20.htm"><STRONG>SUM</ST=
RONG>=20
<EM>variable</EM></A><A=20
onmouseover=3D"window.status=3D'Display details on the BY =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_16.htm"><EM>(s)</EM></A=
><A=20
onmouseover=3D"window.status=3D'Display details on the SUM =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_20.htm"><STRONG>;</STRO=
NG></A></FONT>=20
<DD><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the LABEL =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_41.htm"><STRONG>LABEL</=
STRONG>=20
=
<EM>variable1</EM><STRONG>=3D'</STRONG><EM>label1</EM><STRONG>'</STRONG> =
=
<EM>variable2</EM><STRONG>=3D'</STRONG><EM>label2</EM><STRONG>'</STRONG> =
...<STRONG>;</STRONG></A></FONT>=20
<DD><FONT color=3D#003399><A=20
onmouseover=3D"window.status=3D'Display details on the FORMAT =
statement.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_45.htm"><STRONG>FORMAT<=
/STRONG>=20
<EM>variable(s) format-name</EM>;</A></FONT>=20
<DT><FONT color=3D#003399><STRONG>RUN;</STRONG></FONT>=20
</DT></DL></BLOCKQUOTE></TD></TR></TBODY></TABLE></CENTER>
<CENTER>
<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> <PRE> <FONT color=3D#003399>libname clinic =
'c:\stress\labdata';</FONT>
<FONT color=3D#003399> options nodate number pageno=3D15;</FONT>
<FONT color=3D#003399> proc sort data=3Dclinic.stress =
out=3Dwork.maxrates;</FONT>
<FONT color=3D#003399> by maxhr;</FONT>
<FONT color=3D#003399> run;</FONT>
<FONT color=3D#003399> proc print data=3Dwork.maxrates label double =
noobs;</FONT>
<FONT color=3D#003399> id name;</FONT>
<FONT color=3D#003399>var resthr maxhr rechr date;</FONT>
<FONT color=3D#003399> where tolerance=3D'I' and =
resthr>90;</FONT>
<FONT color=3D#003399> sum fee;</FONT>
<FONT color=3D#003399> label rechr=3D'Recovery HR';</FONT>
<FONT color=3D#003399> run;</FONT><BR> <FONT =
color=3D#003399>title 'August Admission Fees';</FONT>
<FONT color=3D#003399>footnote 'For High Activity Patients';</FONT>
<FONT color=3D#003399>proc print data=3Dclinic.admit label;</FONT>
<FONT color=3D#003399> var actlevel fee;</FONT>
<FONT color=3D#003399> where actlevel=3D'HIGH';</FONT>
<FONT color=3D#003399> label fee=3D'Admission Fee';</FONT>
<FONT color=3D#003399> format fee dollar4.;</FONT>
<FONT color=3D#003399> run;</FONT></PRE>
<P>
<HR>
</TD></TR></TBODY></TABLE><BR><!-- InstanceEndEditable -->
<P><!-- InstanceBeginEditable name=3D"pointstoremember" -->
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
<TBODY>
<TR>
<TD align=3Dleft><STRONG><A name=3DPoints>Points to =
Remember</A></STRONG>=20
<UL>
<LI>VAR, WHERE, and SUM statements remain in effect only for the =
PROC=20
step in which they appear. <BR><BR>
<LI>If you don't use the OUT=3D option, PROC SORT permanently =
sorts the=20
data set specified in the DATA=3D option. <BR><BR>
<LI>TITLE and FOOTNOTE statements remain in effect until you =
modify=20
them, cancel them, or end your SAS session. <BR><BR>
<LI>Be sure to match the quotation marks that enclose the text =
in TITLE,=20
FOOTNOTE, and LABEL statements. <BR><BR>
<LI>To display labels in PRINT procedure output, remember to add =
the=20
LABEL option to the PROC PRINT statement. <BR><BR>
<LI>To permanently assign labels or formats to data set =
variables, place=20
the LABEL or FORMAT statement inside the DATA step.=20
</LI></UL></TD></TR></TBODY></TABLE><!-- InstanceEndEditable =
--></CENTER><!-- #BeginLibraryItem "/Library/nav_regular_bottom.lbi" -->
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%">
<TBODY>
<TR>
<TD width=3D14><IMG height=3D7 alt=3D""=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/linebox.gif"=
=20
width=3D14></TD>
<TD colSpan=3D2><IMG height=3D7 alt=3D""=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/linegray.gif=
"=20
width=3D"100%"></TD></TR>
<TR>
<TD> </TD>
<TD vAlign=3Dtop><FONT face=3D"Verdana, Arial, Helvetica, Sans =
Serif"=20
color=3Dgray size=3D1><A class=3Dcopyrightlink=20
href=3D"javascript:%20openOther('../copyrite.htm')"><FONT=20
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -