<?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 %include ERROR in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/include-ERROR/m-p/414367#M101519</link>
    <description>&lt;P&gt;I ran this code all day yesterday without an issue. Today it won't run and I am getting this error message. I've seen messages on SAS support related to this issue but they were from 2014 and a paper written in 2012 suggested adding an extra semi-colon which did not work. I am using SAS Base 9.4 and the path is a network path and is correctly written and the file exists (again, worked all day yesterday). Does anyone know why this could be happening with SAS 9.4. None of my %put statements are resolving either. It seems like SAS is just malfunctioning its macro utility.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4663 %include "&amp;amp;path.Plot Workbook.sas" ;&lt;BR /&gt;ERROR: Incorrect %INCLUDE statement will not be executed. There is a syntax error.&lt;BR /&gt;4664 %include "&amp;amp;path.Plot Workbook.sas" ;;&lt;BR /&gt;ERROR: Incorrect %INCLUDE statement will not be executed. There is a syntax error.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2017 13:46:59 GMT</pubDate>
    <dc:creator>CP2</dc:creator>
    <dc:date>2017-11-17T13:46:59Z</dc:date>
    <item>
      <title>%include ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-ERROR/m-p/414367#M101519</link>
      <description>&lt;P&gt;I ran this code all day yesterday without an issue. Today it won't run and I am getting this error message. I've seen messages on SAS support related to this issue but they were from 2014 and a paper written in 2012 suggested adding an extra semi-colon which did not work. I am using SAS Base 9.4 and the path is a network path and is correctly written and the file exists (again, worked all day yesterday). Does anyone know why this could be happening with SAS 9.4. None of my %put statements are resolving either. It seems like SAS is just malfunctioning its macro utility.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4663 %include "&amp;amp;path.Plot Workbook.sas" ;&lt;BR /&gt;ERROR: Incorrect %INCLUDE statement will not be executed. There is a syntax error.&lt;BR /&gt;4664 %include "&amp;amp;path.Plot Workbook.sas" ;;&lt;BR /&gt;ERROR: Incorrect %INCLUDE statement will not be executed. There is a syntax error.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-ERROR/m-p/414367#M101519</guid>
      <dc:creator>CP2</dc:creator>
      <dc:date>2017-11-17T13:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: %include ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-ERROR/m-p/414371#M101521</link>
      <description>&lt;P&gt;Use the {i} icon to copy/paste log snippets to. Only then can we be sure we get all text exactly as it was written to the log by SAS.&lt;/P&gt;
&lt;P&gt;The main posting window will drop or change certain characters.&lt;/P&gt;
&lt;P&gt;You might als post the code as you ran it, the log might not have all relevant text in it.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-ERROR/m-p/414371#M101521</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-17T13:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: %include ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-ERROR/m-p/414373#M101522</link>
      <description>&lt;P&gt;And take a close look at the contents of &amp;amp;path.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-ERROR/m-p/414373#M101522</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-17T13:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: %include ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-ERROR/m-p/414384#M101527</link>
      <description>&lt;P&gt;Its likely you have submitted code which is incorrect, and has not been terminated.&amp;nbsp; By this I mean code you have submitted is still in effect.&amp;nbsp; For instance, if you submit code with only one quote mark, and don't close the quote mark, the quote mark from before is still in effect.&amp;nbsp; This can happen when you macros do no resolve to valid code, or leave text strings unclosed etc.&amp;nbsp; The simplest way to solve this is to start a new session.&amp;nbsp; Then QC the code you are running thoroughly (you will have a QC process won't you!), you will likely find some code being generated incorrectly or not as expected, and that is hanging on after the run has finished.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 14:18:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-ERROR/m-p/414384#M101527</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-17T14:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: %include ERROR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-ERROR/m-p/414435#M101544</link>
      <description>&lt;P&gt;Check out this other thread&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/resolve-macro-variable-in-include-statement/td-p/112939" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/resolve-macro-variable-in-include-statement/td-p/112939&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you can get that error message when the filename you are trying to include is not in a valid format for the operating system you are using.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 15:48:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-ERROR/m-p/414435#M101544</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-11-17T15:48:51Z</dc:date>
    </item>
  </channel>
</rss>

