⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 m02 - editing and debugging sas programs summary.mht

📁 sas的考试样题
💻 MHT
📖 第 1 页 / 共 5 页
字号:
Editor</A>=20
      enables you to <A=20
      onmouseover=3D"window.status=3D'Display details on editing SAS =
programs.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_10.htm">enter =
and view=20
      text</A> and=20
      <UL>
        <LI>select one or more lines of text=20
        <LI>use color-coding to identify code elements=20
        <LI>automatically indent the next line when you press the Enter =
key=20
        <LI>collapse and expand sections of SAS procedures, DATA steps, =
and=20
        macros=20
        <LI>bookmark lines of code for easy access to different sections =
of your=20
        program. </LI></UL>
      <P>Using the Editor window, you can also <A=20
      onmouseover=3D"window.status=3D'Display details on editing SAS =
programs.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_11.htm">find and =
replace=20
      text</A>, <A=20
      onmouseover=3D"window.status=3D'Display details on editing SAS =
programs.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_11.htm">use=20
      abbreviations</A>, <A=20
      onmouseover=3D"window.status=3D'Display details on editing SAS =
programs.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_13.htm">open =
multiple=20
      views of a file</A>, and <A=20
      onmouseover=3D"window.status=3D'Display details on editing SAS =
programs.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_14.htm">set =
Enhanced=20
      Editor options</A>.=20
      <P>The Program Editor window enables you to <A=20
      onmouseover=3D"window.status=3D'Display details on editing SAS =
programs.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_16.htm">edit =
your=20
      programs</A> just as you would with a word processing program. You =
can=20
      also use <A=20
      onmouseover=3D"window.status=3D'Display details on text editor =
commands.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_17.htm">text =
editor=20
      commands</A> and <A=20
      onmouseover=3D"window.status=3D'Display details on block text =
editor commands.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_18.htm">block =
text editor=20
      commands</A> to edit SAS programs. <A=20
      onmouseover=3D"window.status=3D'Display details on activating line =
numbers.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      =
href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_16.htm">Activating =
line=20
      numbers</A> can make it easier for you to edit your program =
regardless of=20
      your operating environment.=20
      <P>Remember that SAS statements disappear from the Program Editor =
window=20
      when they are submitted. However, you can <A=20
      onmouseover=3D"window.status=3D'Display details on recalling SAS =
programs.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_20.htm">recall a =

      program</A> to the Program Editor window.=20
      <P>To <A=20
      onmouseover=3D"window.status=3D'Display details on saving SAS =
programs.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_21.htm">save =
your SAS=20
      program</A> to an external file, first activate the Program Editor =
window=20
      and select <STRONG>File <IMG height=3D10 alt=3Dthen=20
      =
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/arrow.gif"=20
      width=3D14 border=3D0> Save As</STRONG>, then specify the name of =
your program=20
      in the Save As window.=20
      <P><STRONG>Clearing SAS Programming Windows</STRONG><BR>Text and =
output=20
      accumulate in the Editor, Program Editor, Log, and Output windows=20
      throughout your SAS session. You can <A=20
      onmouseover=3D"window.status=3D'Display details on clearing =
windows.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_23.htm">clear a =
window</A>=20
      by selecting <STRONG>Edit</STRONG> &nbsp;<STRONG><IMG height=3D10 =
alt=3Dthen=20
      =
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/arrow.gif"=20
      width=3D14 border=3D0> Clear All</STRONG>.</P>
      <P><STRONG>Interpreting Error Messages</STRONG><BR>When a SAS =
program that=20
      contains errors is submitted, error messages appear in the Log =
window. SAS=20
      can detect five <A=20
      onmouseover=3D"window.status=3D'Display details on types of =
errors.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_24.htm">types of =

      errors</A>: syntax, semantic, execution-time, data and =
macro-related. This=20
      lesson focuses on identifying and resolving&nbsp;<A=20
      onmouseover=3D"window.status=3D'Display details on common syntax =
errors.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_25.htm">common =
syntax=20
      errors</A>.</P>
      <P><STRONG>Correcting Errors</STRONG><BR>To modify programs that =
contain=20
      errors, you can <A=20
      onmouseover=3D"window.status=3D'Display details on correcting =
errors.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_26.htm">correct =
the=20
      errors</A> in the code editing window. In the Program Editor =
window, you=20
      need to recall the submitted statements before editing them.</P>
      <P>Before <A=20
      onmouseover=3D"window.status=3D'Display details on resubmitting a =
revised program.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      =
href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_27.htm">resubmitting a =

      revised program</A>, it's a good idea to clear the messages from =
the Log=20
      window so that you don't confuse old messages with the new. You =
can delete=20
      any error-free steps from a revised program before resubmitting =
it.=20
      <P><STRONG>Resolving Common Problems</STRONG><BR>You may need to =
resolve=20
      several types of common problems: <A=20
      onmouseover=3D"window.status=3D'Display details on missing RUN =
statements.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_30.htm">missing =
RUN=20
      statements</A>, <A=20
      onmouseover=3D"window.status=3D'Display details on missing =
semicolons.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_32.htm">missing=20
      semicolons</A>, <A=20
      onmouseover=3D"window.status=3D'Display details on unbalanced =
quotation marks.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      =
href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_34.htm">unbalanced=20
      quotation marks</A>, and <A=20
      onmouseover=3D"window.status=3D'Display details on invalid =
options.'; "=20
      onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
      href=3D"http://www.sas.com/apps/OLTRN/59080/m2/m2_37.htm">invalid=20
      options</A>. </P></TD></TR></TBODY></TABLE><!-- =
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" --><!-- =
InstanceEndEditable -->
<P><!-- InstanceBeginEditable name=3D"sampleprogram" --><!-- =
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>It's a good idea to begin DATA steps, PROC steps, and RUN=20
        statements&nbsp;on the left and to indent statements within a=20
        step.<BR><BR>
        <LI>End each step with a RUN statement.<BR><BR>
        <LI>Review the messages in the Log window each time you submit a =
SAS=20
        program.<BR><BR>
        <LI>You can delete any error-free steps from a revised program =
before=20
        resubmitting it, or you can submit only the revised steps in a =
program.=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>&nbsp;</TD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -