<?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 SAS comment in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-comment/m-p/686101#M208140</link>
    <description>&lt;P&gt;Hi Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to understand the SAS documentation that says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;======================================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;SAS comment statements of the form&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;*commentary;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;or&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;comment commentary;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;are complete SAS statements. Consequently, they are processed by the tokenizer and macro facility and cannot contain semicolons or unmatched quotation marks.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;=======================================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;My understand from the above documentation is that comments in this form are complete statements, and they can’t contain semicolons or unmatched quotation marks. And I am confused about the unmatched quotation marks because when I write the below program, SAS run it with no problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;=======================================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;proc print data=sashelp.cars;&lt;BR /&gt;*comme'''ntary;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2020 15:42:00 GMT</pubDate>
    <dc:creator>marcuswong</dc:creator>
    <dc:date>2020-09-23T15:42:00Z</dc:date>
    <item>
      <title>SAS comment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-comment/m-p/686101#M208140</link>
      <description>&lt;P&gt;Hi Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to understand the SAS documentation that says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;======================================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;SAS comment statements of the form&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;*commentary;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;or&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;comment commentary;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;are complete SAS statements. Consequently, they are processed by the tokenizer and macro facility and cannot contain semicolons or unmatched quotation marks.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;=======================================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;My understand from the above documentation is that comments in this form are complete statements, and they can’t contain semicolons or unmatched quotation marks. And I am confused about the unmatched quotation marks because when I write the below program, SAS run it with no problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;=======================================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;proc print data=sashelp.cars;&lt;BR /&gt;*comme'''ntary;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 15:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-comment/m-p/686101#M208140</guid>
      <dc:creator>marcuswong</dc:creator>
      <dc:date>2020-09-23T15:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS comment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-comment/m-p/686105#M208142</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/334653"&gt;@marcuswong&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;======================================================================&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;SAS comment statements of the form&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;*commentary;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;or&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;comment commentary;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;are complete SAS statements. Consequently, they are processed by the tokenizer and macro facility and cannot contain semicolons or unmatched quotation marks.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;=======================================================================&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interesting. I don't see the text you quote in the SAS documentation at&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=n1v51exifva71an1cvfn2z6j26lo.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=n1v51exifva71an1cvfn2z6j26lo.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where is it from?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 15:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-comment/m-p/686105#M208142</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-23T15:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS comment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-comment/m-p/686107#M208144</link>
      <description>&lt;P&gt;This is very interesting.&amp;nbsp; This would have caused problems in the past.&amp;nbsp; I wonder if SAS finally fixed that flaw in their system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 15:51:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-comment/m-p/686107#M208144</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-09-23T15:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS comment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-comment/m-p/686130#M208150</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/334653"&gt;@marcuswong&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Members,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help me to understand the SAS documentation that says:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;======================================================================&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;SAS comment statements of the form&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;*commentary;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;or&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;comment commentary;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;are complete SAS statements. Consequently, they are processed by the tokenizer &lt;FONT size="5" color="#800080"&gt;&lt;STRONG&gt;and macro facility&lt;/STRONG&gt; &lt;/FONT&gt;and cannot contain semicolons or unmatched quotation marks.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;=======================================================================&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;My understand from the above documentation is that comments in this form are complete statements, and they can’t contain semicolons or unmatched quotation marks. And I am confused about the unmatched quotation marks because when I write the below program, SAS run it with no problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;=======================================================================&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;SPAN&gt;proc print data=sashelp.cars;&lt;BR /&gt;*comme'''ntary;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The code you show is not involving the Macro facility.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this where the comment appears inside a macro:&lt;/P&gt;
&lt;PRE&gt;%macro dummy;

proc print data=sashelp.cars;
*comme'''ntary;
run;

%mend;

options mprint;
%dummy;

&lt;/PRE&gt;
&lt;P&gt;If you are using macros basically you should either use the /* */ style of commenting or %*&amp;lt;text&amp;gt; ; to prevent the macro system from trying to interpret the comment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 16:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-comment/m-p/686130#M208150</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-23T16:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS comment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-comment/m-p/686879#M208477</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/339357"&gt;@CurtisMackWSIPP&lt;/a&gt;&amp;nbsp;Thank you for the guidance.&lt;/P&gt;&lt;P&gt;Now I understand the clause is applying to comment within a macro.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2020 02:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-comment/m-p/686879#M208477</guid>
      <dc:creator>marcuswong</dc:creator>
      <dc:date>2020-09-26T02:00:33Z</dc:date>
    </item>
  </channel>
</rss>

