<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: comments in SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/comments-in-SAS/m-p/45934#M12152</link>
    <description>Hi:&lt;BR /&gt;
  As Scott said, your comments are syntactically correct. However, if you ever want to "comment out" an entire step or block of code, you will not be able to put /* and */ around your PROC CORR step because you are already using that syntax. &lt;BR /&gt;
&lt;BR /&gt;
  You might want to consider adding a bit of white space and/or not mixing commas inside your complete statements (put the comment outside the semi-colon). The first example could have the entire step commented out because you use *; type of comments. The second example is a variation on your original code,&lt;BR /&gt;
&lt;BR /&gt;
Either of these models seems easier to read to me. Indenting code and using white space seem to increase readability. &lt;BR /&gt;
  &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Example 1&lt;/B&gt;&lt;BR /&gt;
*******************************************************************************;&lt;BR /&gt;
* initialise and send results to the RTF file Corr.rtf until the file is closed;&lt;BR /&gt;
* create a temporary dataset Corr;&lt;BR /&gt;
* determine the correlation between each variable;&lt;BR /&gt;
* close the RTF file Corr;&lt;BR /&gt;
*******************************************************************************;&lt;BR /&gt;
                                &lt;BR /&gt;
ods rtf file='Corr.rtf';&lt;BR /&gt;
              &lt;BR /&gt;
proc corr data = review1 outest = Corr;&lt;BR /&gt;
  VAR Z X Y;&lt;BR /&gt;
RUN;&lt;BR /&gt;
          &lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
&lt;BR /&gt;
                       &lt;BR /&gt;
&lt;B&gt;Example 2&lt;/B&gt;&lt;BR /&gt;
                                      &lt;BR /&gt;
ods rtf file='Corr.rtf';     /*initialise and send results to the RTF file Corr.rtf until the file is closed*/&lt;BR /&gt;
                         &lt;BR /&gt;
proc corr data = review1 &lt;BR /&gt;
     outest = Corr;          /*create a temporary dataset Corr */&lt;BR /&gt;
  VAR Z X Y;                 /*determine the correlation between each variable*/&lt;BR /&gt;
RUN;&lt;BR /&gt;
             &lt;BR /&gt;
ods rtf close;               /* close the RTF file Corr*/&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
    <pubDate>Fri, 09 Jul 2010 02:42:24 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-07-09T02:42:24Z</dc:date>
    <item>
      <title>comments in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comments-in-SAS/m-p/45932#M12150</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am using the code as below and want to write commenets to make the code understanding , kindly correct me if I am wrong soemwhere :-&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ods rtf file='Corr.rtf'/*initialise and send results to the RTF file Corr.rtf until the file is closed*/;&lt;BR /&gt;
proc corr data = review1 outest = Corr/*create a temporary dataset Corr */;&lt;BR /&gt;
	VAR Z X Y/*determine the correlation between each variable*/;&lt;BR /&gt;
RUN;&lt;BR /&gt;
ods rtf close /* close the RTF file Corr*/;&lt;BR /&gt;
&lt;BR /&gt;
Kindest Regards&lt;BR /&gt;
Mark</description>
      <pubDate>Thu, 08 Jul 2010 23:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comments-in-SAS/m-p/45932#M12150</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-08T23:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: comments in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comments-in-SAS/m-p/45933#M12151</link>
      <description>The comments are syntactically correct.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
comment statement site:sas.com

Message was edited by: sbb</description>
      <pubDate>Fri, 09 Jul 2010 01:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comments-in-SAS/m-p/45933#M12151</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-09T01:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: comments in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/comments-in-SAS/m-p/45934#M12152</link>
      <description>Hi:&lt;BR /&gt;
  As Scott said, your comments are syntactically correct. However, if you ever want to "comment out" an entire step or block of code, you will not be able to put /* and */ around your PROC CORR step because you are already using that syntax. &lt;BR /&gt;
&lt;BR /&gt;
  You might want to consider adding a bit of white space and/or not mixing commas inside your complete statements (put the comment outside the semi-colon). The first example could have the entire step commented out because you use *; type of comments. The second example is a variation on your original code,&lt;BR /&gt;
&lt;BR /&gt;
Either of these models seems easier to read to me. Indenting code and using white space seem to increase readability. &lt;BR /&gt;
  &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Example 1&lt;/B&gt;&lt;BR /&gt;
*******************************************************************************;&lt;BR /&gt;
* initialise and send results to the RTF file Corr.rtf until the file is closed;&lt;BR /&gt;
* create a temporary dataset Corr;&lt;BR /&gt;
* determine the correlation between each variable;&lt;BR /&gt;
* close the RTF file Corr;&lt;BR /&gt;
*******************************************************************************;&lt;BR /&gt;
                                &lt;BR /&gt;
ods rtf file='Corr.rtf';&lt;BR /&gt;
              &lt;BR /&gt;
proc corr data = review1 outest = Corr;&lt;BR /&gt;
  VAR Z X Y;&lt;BR /&gt;
RUN;&lt;BR /&gt;
          &lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
&lt;BR /&gt;
                       &lt;BR /&gt;
&lt;B&gt;Example 2&lt;/B&gt;&lt;BR /&gt;
                                      &lt;BR /&gt;
ods rtf file='Corr.rtf';     /*initialise and send results to the RTF file Corr.rtf until the file is closed*/&lt;BR /&gt;
                         &lt;BR /&gt;
proc corr data = review1 &lt;BR /&gt;
     outest = Corr;          /*create a temporary dataset Corr */&lt;BR /&gt;
  VAR Z X Y;                 /*determine the correlation between each variable*/&lt;BR /&gt;
RUN;&lt;BR /&gt;
             &lt;BR /&gt;
ods rtf close;               /* close the RTF file Corr*/&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 09 Jul 2010 02:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/comments-in-SAS/m-p/45934#M12152</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-07-09T02:42:24Z</dc:date>
    </item>
  </channel>
</rss>

