<?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: syntax error in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350850#M23112</link>
    <description>&lt;P&gt;Well, it could be a constant that should be&amp;nbsp;added to the result.&lt;/P&gt;
&lt;P&gt;Either way, it's not assigned at the execution time for this query.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2017 13:43:00 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-04-18T13:43:00Z</dc:date>
    <item>
      <title>syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350841#M23109</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting this error and cant seem to figure out what is going on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rida&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference THRU_ALL not resolved.&lt;BR /&gt;NOTE 137-205: Line generated by the invoked macro "QTRLY_SUMS".&lt;BR /&gt;809&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROC APPEND BASE=rptlib.qrtly_sum_totals1 DATA=in_b FORCE; RUN;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROC SQL;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATE TABLE rptlib.qrtly_sum_totals AS&lt;BR /&gt;809&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;amp;thru_all.&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM rptlib.qrtly_sum_totals1&amp;nbsp;&amp;nbsp; ;QUIT;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ______&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 13:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350841#M23109</guid>
      <dc:creator>Rsadiq</dc:creator>
      <dc:date>2017-04-18T13:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350844#M23110</link>
      <description>&lt;P&gt;What is the macro variable &amp;amp;thru_all and is it even needed. By using select * you are already selecting all of the dataset's variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 13:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350844#M23110</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-04-18T13:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350848#M23111</link>
      <description>&lt;P&gt;&lt;SPAN&gt;WARNING: Apparent symbolic reference THRU_ALL not resolved.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The above is telling you that the macro variable THUR_ALL does not exist. &amp;nbsp;Therefore the code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , &amp;nbsp; &amp;nbsp;FROM&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is invalid.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 13:42:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350848#M23111</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-18T13:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350850#M23112</link>
      <description>&lt;P&gt;Well, it could be a constant that should be&amp;nbsp;added to the result.&lt;/P&gt;
&lt;P&gt;Either way, it's not assigned at the execution time for this query.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 13:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350850#M23112</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-04-18T13:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350866#M23113</link>
      <description>&lt;P&gt;If macro variable thru_all is to be used to add a variable (or several variables) to a dataset, it should contain the comma, and your code should look like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table rptlib.qrtly_sum_totals as
select * &amp;amp;thru_all.
from rptlib.qrtly_sum_totals1;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you will get no ERROR if &amp;amp;thru_all is empty or undefined. The WARNING for an undefined macro variable will persist, though.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 14:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350866#M23113</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-18T14:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350867#M23114</link>
      <description>&lt;P&gt;If it is undefined then it will still generate a syntax error. It will just leave the macro reference as it was and the this:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select * &amp;amp;thru_all.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is not valid syntax.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 14:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350867#M23114</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-18T14:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350868#M23115</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;If it is undefined then it will still generate a syntax error. It will just leave the macro reference as it was and the this:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select * &amp;amp;thru_all.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is not valid syntax.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Correct. Shame on me.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 14:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/syntax-error/m-p/350868#M23115</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-18T14:17:43Z</dc:date>
    </item>
  </channel>
</rss>

