<?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: General Block Comments Question (Ctrl+ /) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/General-Block-Comments-Question-Ctrl/m-p/490617#M128399</link>
    <description>&lt;P&gt;HINT: Do not use multiple /*/*/*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */*/*/ to comment code. The first /* starts a sequence but nested * and /* start confusing the processor.&lt;/P&gt;
&lt;P&gt;Depending on exact code likely one or more of the /* get treated as the start of a&amp;nbsp;* ; type comment. So the first statement following is treated as part of one of those comments, or require the ending ; as you mention.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally for blocks I use&lt;/P&gt;
&lt;P&gt;/*&lt;/P&gt;
&lt;P&gt;&amp;lt;all the code &amp;gt;&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&gt;to avoid that specific issue.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Aug 2018 20:48:54 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-08-28T20:48:54Z</dc:date>
    <item>
      <title>General Block Comments Question (Ctrl+ /)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/General-Block-Comments-Question-Ctrl/m-p/490615#M128398</link>
      <description>&lt;P&gt;I wrote code that I ran one time to get a database in SAS. Instead of delete this code, I tried block commenting it out. It appears that when I do this, it also comments out the following line of code after the block comments unless I add a semicolon at the end of the block comment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does this happen?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code that is making my next line be a comment without the semicolon in the last line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*/*/*/*/*%LET PriorMo = %SYSFUNC(PUTN(%EVAL(&amp;amp;MO -1),z2.));*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/*%PUT &amp;amp;=PriorMo;*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/*%LET YrPriorMo = &amp;amp;Yr&amp;amp;PriorMo;*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/*%PUT &amp;amp;=YrPriorMo;*/*/*/*/*/&lt;/P&gt;&lt;P&gt;/*/*/*/*/*%SYMDEL PriorMo;*/*/*/*/*/&lt;/P&gt;&lt;P&gt;/*/*/*/*/*%LET strDbFilePathPrior = %SYSFUNC(CATX(\*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/* ,\\blcfs04\#BLCFS04\HLTHFIN\ONGOING\LTC\Valuation*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/* ,&amp;amp;Yr*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/* ,&amp;amp;YrPriorMo*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/* ,RGA*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/* ,People History.accdb)*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/* );*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/*%PUT &amp;amp;=strDbFilePathPrior;*/*/*/*/*/&lt;/P&gt;&lt;P&gt;/*/*/*/*/*%MsOfficeImport(&amp;amp;strDbFilePathPrior*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/* ,Cum Info*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/* ,SaDAPHlt.VMF_Cumulative_Info*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/* ,strFileType = ACCESS*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/* ,strSasGrpNm=ActProdMgmtHealth*/*/*/*/*/&lt;BR /&gt;/*/*/*/*/* );*/*/*/*/*/&lt;/P&gt;&lt;P&gt;/*/*/*/*/*%SYMDEL strDbFilePathPrior YrPriorMo;*/*/*/*/*/;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 20:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/General-Block-Comments-Question-Ctrl/m-p/490615#M128398</guid>
      <dc:creator>pchappus</dc:creator>
      <dc:date>2018-08-28T20:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: General Block Comments Question (Ctrl+ /)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/General-Block-Comments-Question-Ctrl/m-p/490617#M128399</link>
      <description>&lt;P&gt;HINT: Do not use multiple /*/*/*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */*/*/ to comment code. The first /* starts a sequence but nested * and /* start confusing the processor.&lt;/P&gt;
&lt;P&gt;Depending on exact code likely one or more of the /* get treated as the start of a&amp;nbsp;* ; type comment. So the first statement following is treated as part of one of those comments, or require the ending ; as you mention.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally for blocks I use&lt;/P&gt;
&lt;P&gt;/*&lt;/P&gt;
&lt;P&gt;&amp;lt;all the code &amp;gt;&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&gt;to avoid that specific issue.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 20:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/General-Block-Comments-Question-Ctrl/m-p/490617#M128399</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-28T20:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: General Block Comments Question (Ctrl+ /)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/General-Block-Comments-Question-Ctrl/m-p/490618#M128400</link>
      <description>&lt;P&gt;How and Why did you create that wonderful display of gibberish?&amp;nbsp; From the subject line I suspect that you have mis-used some editor feature.&amp;nbsp; Remember that editors don't really know what they are editing.&amp;nbsp; They are just following rules someone gave them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inserting a bunch of random /* and */ characters into your program is not a good idea.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that /* ... */ comments (block comments) do NOT nest.&amp;nbsp; So this line&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*/*/*/*/*%LET PriorMo = %SYSFUNC(PUTN(%EVAL(&amp;amp;MO -1),z2.));*/*/*/*/*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is this block comment&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*/*/*/*/*%LET PriorMo = %SYSFUNC(PUTN(%EVAL(&amp;amp;MO -1),z2.));*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Followed by the beginning of a statement comment ( * .... ; )&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*/*/*/*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So now SAS is on the hunt for a semi-colon to end that comment that you started on the first line.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 20:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/General-Block-Comments-Question-Ctrl/m-p/490618#M128400</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-08-28T20:53:30Z</dc:date>
    </item>
  </channel>
</rss>

