📄 m16 - referencing files and setting options - summary.mht
字号:
href=3D"http://www.sas.com/apps/OLTRN/59080/m16/m16_9.htm">librefs =
that are=20
in effect</A> for your SAS session are listed under Libraries in =
the=20
Explorer window. To view details about a library, double-click=20
<STRONG>Libraries</STRONG> (or select <STRONG>Libraries <IMG =
height=3D10=20
alt=3Dthen=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/arrow.gif"=20
width=3D14 border=3D0> Open</STRONG> from the pop-up menu). Then =
select=20
<STRONG>View <IMG height=3D10 alt=3Dthen=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/arrow.gif"=20
width=3D14 border=3D0> Details</STRONG>. The library's name, =
engine, host=20
pathname, and date are listed under Active=20
Libraries.</TD></TR></TBODY></TABLE><BR></DIV>
<P align=3Dcenter>
<DIV align=3Dcenter>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
<TBODY>
<TR>
<TD><STRONG>Viewing the Contents of a Library</STRONG><BR>To <A=20
onmouseover=3D"window.status=3D'Display details on viewing the =
contents of libraries.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m16/m16_9.htm#Contents">view =
the=20
contents</A> of a library, double-click the library name in the =
Explorer=20
window (or select the library name and then select=20
<STRONG>Open</STRONG> from the pop-up menu). Files contained in =
the=20
library are listed under =
Contents.</TD></TR></TBODY></TABLE><BR></DIV>
<P align=3Dcenter>
<DIV align=3Dcenter>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
<TBODY>
<TR>
<TD>
<P><STRONG>Viewing the Contents of a File</STRONG><BR>If you are =
working=20
in a windowing environment, you can <A=20
onmouseover=3D"window.status=3D'Display details on viewing the =
contents of files.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m16/m16_9.htm#Files">display =
the=20
contents of a file</A> by double-clicking the filename (or =
selecting the=20
filename and then selecting <STRONG>Open</STRONG> from the pop-up =
menu)=20
under Contents in the Explorer window. If you select a SAS data =
set, its=20
contents are displayed in the VIEWTABLE window.</P>
<P>If you are working in the z/OS (OS/390) or CMS operating =
environment,=20
you can type <B>?</B> in the selection field next to a filename in =
the=20
Explorer window to display a pop-up menu with a list of options =
for=20
working with that file. </P></TD></TR></TBODY></TABLE><BR></DIV>
<P align=3Dcenter>
<DIV align=3Dcenter>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
<TBODY>
<TR>
<TD><STRONG>Listing the Contents of a Library</STRONG><BR>To <A=20
onmouseover=3D"window.status=3D'Display details on printing the =
contents of libraries.';"=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
href=3D"http://www.sas.com/apps/OLTRN/59080/m16/m16_11.htm">list =
the=20
contents</A> of a library, use the <STRONG>CONTENTS =
procedure</STRONG>.=20
Append a period and the _ALL_ option to the libref to get a =
listing of all=20
files in the library. Add the NODS option to suppress detailed =
information=20
about the files. As an alternative to PROC CONTENTS, you can use =
<A=20
onmouseover=3D"window.status=3D'Display details on the OPTIONS =
window.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
href=3D"http://www.sas.com/apps/OLTRN/59080/m16/m16_12.htm">PROC=20
DATASETS</A>.</TD></TR></TBODY></TABLE><BR></DIV>
<P align=3Dcenter>
<DIV align=3Dcenter>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
<TBODY>
<TR>
<TD><STRONG>Specifying Result Formats</STRONG><BR>In desktop =
operating=20
environments, you can choose to create your SAS procedure output =
as an=20
HTML document, a listing (traditional SAS output), or both. You <A =
onmouseover=3D"window.status=3D'Display details on choosing =
results formats.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
href=3D"http://www.sas.com/apps/OLTRN/59080/m16/m16_15.htm">choose =
the=20
results format(s)</A> that you prefer in the Preferences window. =
Your=20
preferences are saved until you modify them, and they apply to all =
output=20
that is created during your SAS session. To open this window, =
select=20
<STRONG>Tools</STRONG> <IMG height=3D10 alt=3Dthen=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/arrow.gif"=20
width=3D14 align=3DabsMiddle border=3D0> <STRONG>Options</STRONG> =
<IMG height=3D10=20
alt=3Dthen=20
=
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/arrow.gif"=20
width=3D14 align=3DabsMiddle border=3D0> =
<STRONG>Preferences</STRONG>. Then=20
click the <STRONG>Results</STRONG> tab. Choose <STRONG>Create=20
listing</STRONG>, <STRONG>Create HTML</STRONG>, or both. =20
<P>If you choose <STRONG>Create HTML</STRONG>, then each HTML file =
is=20
displayed in the browser that you specify (in the Windows =
operating=20
environment, the internal browser is the Results Viewer window). =
HTML=20
files are stored in the location that you specify and are =
incrementally=20
named <STRONG>sashtml.htm</STRONG>, <STRONG>sashtml1.htm</STRONG>, =
<STRONG>sashtml2.htm</STRONG>, and so on throughout your SAS =
session. To=20
specify where HTML files are stored, type a path in the=20
<STRONG>Folder</STRONG> box (or click <STRONG>Browse</STRONG> to =
locate a=20
pathname). If you prefer to store your HTML files temporarily and =
to=20
delete them at the end of your SAS session, click <STRONG>Use WORK =
folder</STRONG> instead of specifying a folder. To specify the=20
presentation style for HTML output, you can select an item in the=20
<STRONG>Style</STRONG> box. =
</P></TD></TR></TBODY></TABLE><BR></DIV>
<P align=3Dcenter>
<DIV align=3Dcenter>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
<TBODY>
<TR>
<TD align=3Dleft><STRONG>Setting System Options</STRONG><BR>For your =
listing=20
output, you can also control the appearance of your output by =
setting=20
system options such as line size, page size, the display of page =
numbers,=20
and the display of the date and time. (These options do not affect =
the=20
appearance of HTML output.)=20
<P>All SAS system options have default settings that are used =
unless you=20
specify otherwise. For example, page numbers are automatically =
displayed=20
(unless your site modifies this default). To modify system =
options, you=20
submit an <A=20
onmouseover=3D"window.status=3D'Display details on the OPTIONS =
statement.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m16/m16_20.htm">OPTIONS=20
statement</A>. You can place an OPTIONS statement anywhere in a =
SAS=20
program to change the current settings. Because the OPTIONS =
statement is=20
global, the settings remain in effect until you modify them or =
until you=20
end your SAS session.=20
<P>If you use two-digit year values in your SAS data lines, you =
must be=20
aware of the <A=20
onmouseover=3D"window.status=3D'Display details on the =
YEARCUTOFF=3D option.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m16/m16_24.htm">YEARCUTOFF=3D=
=20
option</A> to ensure that you are properly interpreting two-digit =
years in=20
your SAS program. This option specifies which 100-year span is =
used to=20
interpret two-digit year values.=20
<P>To specify the observations to process from SAS data sets, you =
can use=20
the <A=20
onmouseover=3D"window.status=3D'Display details on the FIRSTOBS=3D =
and OBS=3D options.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
=
href=3D"http://www.sas.com/apps/OLTRN/59080/m16/m16_28.htm">FIRSTOBS=3D =
and=20
OBS=3D options</A>.=20
<P>You can also use the <A=20
onmouseover=3D"window.status=3D'Display details on the OPTIONS =
window.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
href=3D"http://www.sas.com/apps/OLTRN/59080/m16/m16_29.htm">SAS =
System=20
Options window</A> to set system options. However, you cannot =
store the=20
option settings with your SAS programs as you can when you use the =
OPTIONS=20
statement. </P></TD></TR></TBODY></TABLE><BR></DIV>
<DIV align=3Dcenter>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
<TBODY>
<TR>
<TD align=3Dleft><STRONG>Additional Features</STRONG><BR>You can set =
a=20
number of additional <A=20
onmouseover=3D"window.status=3D'Display details on the OPTIONS =
window.'; "=20
onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
href=3D"http://www.sas.com/apps/OLTRN/59080/m16/m16_30.htm">SAS =
system=20
options</A> that are commonly used. =
</TD></TR></TBODY></TABLE></DIV><!-- 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> </P></TD></TR></TBODY></TABLE><BR></CENTER>
<P align=3Dcenter>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -