<?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: Is this the fourth way to add comment text in SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668685#M200486</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt; provides a sixth way to comment out code! (One I have used myself!)&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jul 2020 20:29:43 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-07-12T20:29:43Z</dc:date>
    <item>
      <title>Is this the fourth way to add comment text in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668653#M200466</link>
      <description>&lt;P&gt;As far as I know, there are three kinds of ways to add comment in SAS:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Any comment text here; 
%*Any comment text here; 
/*Any comment text here*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This afternoon, I am kind of excited of finding the fourth way to add comment by coincidence. It is:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;comment Any comment text here;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see, the first word comment is a keyword here to trigger the following text becoming comment text. I have tried several programs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*comment of macro in open code*/ 

%put This is %sysfunc(date(),e8601da.); 

comment %put This is %sysfunc(date(),e8601da.); 

/*comment of macro*/ 

comment %cmprs(test); 

/*comment after normal statement*/ 

data _null_; 
comment Hi there.; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They all behaves like a normal comment way. Only one point, there mustn't exist a semicolon in the comment text. I think there is enough exploration in SAS. I search in the help document and find nothing. My friend tells me this may be a pre-experience features, How do you know about it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please share your idea.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 00:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668653#M200466</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2020-07-13T00:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is this the fourth way to add comment text in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668657#M200470</link>
      <description>&lt;P&gt;It is not new.&amp;nbsp; I suspect that SAS has just removed it from the documentation, perhaps like the way PROC DELETE disappeared for a while.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an old article that mentions it.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sascommunity.org/mwiki/index.php?title=Comment_statement" target="_blank" rel="noopener"&gt;https://www.sascommunity.org/mwiki/index.php?title=Comment_statement&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 16:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668657#M200470</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-12T16:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is this the fourth way to add comment text in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668665#M200478</link>
      <description>&lt;P&gt;The COMMENT statement is really old. SAS tends to support almost everything that it ever did, but it does not necessarily keep documenting something that almost no one would ever use now days. I believe it traces its roots to FORTRAN comments. I'll bet it dates back to the 1970s.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 17:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668665#M200478</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2020-07-12T17:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is this the fourth way to add comment text in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668670#M200483</link>
      <description>&lt;P&gt;Another way to comment text, particularly if you want to comment large blocks of code that may already have comments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%if 0 %then %do;&lt;/P&gt;
&lt;P&gt;your comments go here&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 18:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668670#M200483</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-07-12T18:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is this the fourth way to add comment text in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668672#M200485</link>
      <description>&lt;P&gt;A very useful method of designating a block of code as a comment is to define it as a macro.&amp;nbsp; For example, suppose you make some changes to the beginning of a program and want to test the changes before running the entire program.&amp;nbsp; Right now the program looks like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Beginning of program that contains some changes

The rest of the program that should only run once the changes are debugged&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could modify the program in this way:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Beginning of the program that contains some changes

%macro skip;
The rest of the program that should only run once the changes are debugged
%mend skip;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;By defining the rest of the program as a macro, you can skip it until the earlier changes are debugged.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 19:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668672#M200485</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-07-12T19:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is this the fourth way to add comment text in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668685#M200486</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt; provides a sixth way to comment out code! (One I have used myself!)&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 20:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668685#M200486</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-07-12T20:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is this the fourth way to add comment text in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668756#M200519</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/SAS-should-support-double-slash-comments-at-the-right-of-a-code/idi-p/274846" target="_self"&gt;End of line comments&lt;/A&gt; are badly needed in my opinion.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 08:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-this-the-fourth-way-to-add-comment-text-in-SAS/m-p/668756#M200519</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-13T08:05:04Z</dc:date>
    </item>
  </channel>
</rss>

