📄 m04 - creating list reports - 53 of 55.mht
字号:
From: <Saved by Microsoft Internet Explorer 5>
Subject:
Date: Wed, 3 Mar 2004 16:10:27 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_NextPart_000_0000_01C4013A.0ABF32D0";
type="text/html"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C4013A.0ABF32D0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.sas.com/apps/OLTRN/59080/m4/m4_53.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><!-- InstanceBegin template=3D"/Templates/summary.dwt" =
codeOutsideHTMLIsLocked=3D"false" -->
<SCRIPT language=3DJavaScript=20
src=3D"http://www.sas.com/apps/OLTRN/59080/tut.js">=0A=
</SCRIPT>
<SCRIPT language=3DJavaScript>=0A=
setPageTitle();=0A=
setCookie();=0A=
fixedTitle=3D"Lesson Summary";=0A=
=0A=
// Drop down menu link- =A9 Dynamic Drive (www.dynamicdrive.com)=0A=
// For full source code and 100's more DHTML scripts, visit =
http://www.dynamicdrive.com=0A=
// Credit MUST stay intact for use -->=0A=
=0A=
</SCRIPT>
<!-- InstanceBeginEditable name=3D"extrascript" -->
<SCRIPT language=3DJavaScript>=0A=
dmsInfo1=3D'<p> <strong>Using the TITLES and FOOTNOTES =
Windows</strong><br>';=0A=
dmsInfo1+=3D'You can also specify titles and footnotes in the <a =
href=3D"m4_32.htm" onClick=3D"suggestBack()" onMouseOver=3D"';=0A=
dmsInfo1+=3D"window.status=3D'Display details on the TITLES and =
FOOTNOTES windows.';";=0A=
dmsInfo1+=3D'" onMouseOut=3D"window.status=3D';=0A=
dmsInfo1+=3D"''";=0A=
dmsInfo1+=3D'">TITLES and FOOTNOTES windows</a>. These titles and =
footnotes are not stored ';=0A=
dmsInfo1+=3D'with your program; they remain in effect only during your =
SAS session. ';=0A=
dmsInfo2=3D'';=0A=
dmsInfo3=3D'';=0A=
=0A=
eg1Info1=3D' ';=0A=
eg1Info2=3D'';=0A=
eg1Info3=3D'';=0A=
=0A=
eg2Info1=3D' ';=0A=
eg2Info2=3D'';=0A=
eg2Info3=3D'';=0A=
=0A=
setInterfaceVersion();=0A=
</SCRIPT>
<!-- InstanceEndEditable --><LINK=20
href=3D"http://www.sas.com/apps/OLTRN/59080/tut.css" rel=3Dstylesheet>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#fffff0 leftMargin=3D0 topMargin=3D0 rightMargin=3D0 =
marginwidth=3D"0"=20
marginheight=3D"0">
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%"=20
background=3Dhttp://www.sas.com/apps/elearning/images/en/navimages/banner=
.gif=20
border=3D0>
<TBODY>
<TR>
<TD noWrap colSpan=3D2 height=3D49><FONT face=3D"Arial, Helvetica, =
sans-serif"=20
color=3D#a6caf0 size=3D-1>
<SCRIPT>setCourseTitle()</SCRIPT>
</FONT><BR><STRONG><FONT face=3D"Arial, Helvetica, sans-serif"=20
color=3D#ffffff size=3D-1>
<SCRIPT>setLessonTitle()</SCRIPT>
</FONT></STRONG> <IMG height=3D8 alt=3D""=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/bullet.gif" =
width=3D8> <FONT color=3D#ffffff size=3D2><STRONG>
<SCRIPT>document.write(myPage+" of "+eval(myModule))</SCRIPT>
</STRONG></FONT> </TD>
<TD vAlign=3Dbottom width=3D357 rowSpan=3D3><IMG height=3D72 =
alt=3D""=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/logo_top.gif=
"=20
width=3D357 align=3Dbottom></TD></TR>
<TR>
<TD vAlign=3Dbottom noWrap colSpan=3D2><IMG height=3D19 alt=3D""=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/tableft.gif"=
=20
width=3D9><A=20
onmouseover=3D"rOver('back');window.status=3D'Display the previous =
page.';return true"=20
accessKey=3Db onmouseout=3D"rOut('back');window.status=3D'';return =
true"=20
href=3D"javascript:%20prevPage()"><IMG height=3D19 alt=3Dback=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/back.gif"=20
width=3D30 border=3D0 name=3Dback></A><A=20
onmouseover=3D"rOver('next');window.status=3D'Display the next =
page.';return true"=20
accessKey=3Dn onmouseout=3D"rOut('next');window.status=3D'';return =
true"=20
href=3D"javascript:%20nextPage()"><IMG height=3D19 alt=3Dnext=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/next.gif"=20
width=3D30 border=3D0 name=3Dnext></A>
<SCRIPT>writeLessonMenu()</SCRIPT>
<A=20
onmouseover=3D"rOver('path');window.status=3D'Display the Learning =
Path.';return true"=20
accessKey=3Dp onmouseout=3D"rOut('path');window.status=3D'';return =
true"=20
href=3D"http://www.sas.com/apps/OLTRN/59080/paths.htm"><IMG =
height=3D19=20
alt=3D"Learning Path"=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/path.gif"=20
width=3D48 border=3D0 name=3Dpath></A>
<SCRIPT>writeHelpMenu()</SCRIPT>
<IMG height=3D19 alt=3D""=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/tabright.gif=
"=20
width=3D28></TD></TR>
<TR>
<TD vAlign=3Dbottom colSpan=3D2 height=3D3><IMG height=3D3 alt=3D""=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/border.gif" =
width=3D"100%"></TD></TR>
<TR vAlign=3Dtop bgColor=3D#fffff0>
<TD noWrap> </TD>
<TD vAlign=3Dcenter><BR><IMG height=3D1 alt=3D""=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/cleardot.gif=
"=20
width=3D411><BR><FONT face=3D"Arial, Helvetica, sans-serif" =
color=3D#003399=20
size=3D3><STRONG>
<SCRIPT>document.write(fixedTitle)</SCRIPT>
</STRONG></FONT></TD>
<TD><IMG height=3D64 alt=3D""=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/arch.gif"=20
width=3D357 align=3Dtop></TD></TR></TBODY></TABLE><BR>
<CENTER>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" align=3Dcenter =
border=3D0>
<TBODY>
<TR>
<TD align=3Dleft>
<P>This page contains </P>
<UL><!-- InstanceBeginEditable name=3D"links" -->
<LI><A onmouseover=3D"window.status=3D'Go to the text summary =
section.'; "=20
onmouseout=3D"window.status=3D''"=20
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_53.htm#Text">a =
text=20
summary of the material taught in the lesson</A>=20
<LI><A onmouseover=3D"window.status=3D'Go to the syntax =
section.'; "=20
onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_53.htm#Syntax">syntax=20
for statements and options</A>=20
<LI><A onmouseover=3D"window.status=3D'Go to the sample program =
section.'; "=20
onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_53.htm#Sample">a =
sample=20
program</A>=20
<LI><A=20
onmouseover=3D"window.status=3D'Go to the points to remember =
section.'; "=20
onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m4/m4_53.htm#Points">points =
to=20
remember</A>. <!-- InstanceEndEditable --></LI></UL>
<P>
<HR>
</TD></TR></TBODY></TABLE>
<P>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" align=3Dcenter =
border=3D0>
<TBODY>
<TR>
<TD align=3Dleft>
<H2><STRONG><A name=3DText>Text Summary</A></STRONG> </H2>
<P><EM>To go to the page where a task, programming feature, or=20
concept was presented, select a=20
link.</EM></P></TD></TR></TBODY></TABLE><BR><!-- InstanceBeginEditable =
name=3D"textsummary" -->
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" align=3Dcenter =
border=3D0>
<TBODY>
<TR vAlign=3Dtop>
<TD>
<P><STRONG>Creating a Basic Report</STRONG><BR>To list the =
information in=20
a SAS data set, you can use <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">PROC =
PRINT</A>. You=20
use the PROC PRINT statement to invoke the PRINT procedure and to =
specify=20
the data set that you are listing. Include the DATA=3D option to =
specify the=20
data set that you are using. By default, PROC PRINT displays all=20
observations and variables in the data set, includes a column for=20
observation numbers on the far left, and displays variables in the =
order=20
in which they occur in the data set. If you use a LABEL statement =
with=20
PROC PRINT, you must specify the LABEL option in the PROC PRINT =
statement.=20
</P>
<P>To refine a basic report, you can=20
<UL>
<LI>select which variables and observations are processed=20
<LI>sort the data=20
<LI>generate column totals for numeric variables. </LI></UL>
<P><STRONG>Selecting Variables</STRONG><BR>You can select =
variables and=20
control the order in which they appear by using 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">VAR =
statement</A>=20
in your PROC PRINT step. To remove the <CODE>Obs</CODE> column, =
you can=20
specify the <A=20
onmouseover=3D"window.status=3D'Display details on the NOOBS =
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -