<?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: Error 22-322: Syntax error in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/770035#M39588</link>
    <description>&lt;P&gt;Thanks! Will keep it in mind.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I fixed the things everyone mentioned above and changed "to_chat" since its used only in SQL app, not in SAS Enterprise Guide. However, now I have problem with the Where section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;24 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Proc sql;&lt;/P&gt;&lt;P class="p1"&gt;25 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Select&lt;/P&gt;&lt;P class="p1"&gt;26&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;27 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;smlo.cislo_smlouvy,&lt;/P&gt;&lt;P class="p1"&gt;28 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;smlo.cislo_ramcove_smlouvy,&lt;/P&gt;&lt;P class="p1"&gt;29 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Skud.cislo_skodni_udalosti,&lt;/P&gt;&lt;P class="p1"&gt;30 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;vznik =year(datepart(skud.datum_vzniku)),&lt;/P&gt;&lt;P class="p1"&gt;31 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Scov.kod_scov&lt;/P&gt;&lt;P class="p1"&gt;32&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;33 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;From dwh.bcdf_smlo_smlouvy smlo&lt;/P&gt;&lt;P class="p1"&gt;34 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Inner join dwh.bcdf_skud_skodni_udalosti skud on skud.smlo_pk=smlo.smlo_pk&lt;/P&gt;&lt;P class="p1"&gt;35 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Inner join dwh.bcdd_pssu_podslozky_su pssu on pssu.skud_pk=skud.skud_pk&lt;/P&gt;&lt;P class="p1"&gt;36 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Inner join dwh.bcdd_scov_subcover scov on scov.scov_pk=pssu.scov_ok&lt;/P&gt;&lt;P class="p1"&gt;37&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;38 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Where smlo.cislo_ramcove_smlouvy = ’898306813’&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&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; &lt;/SPAN&gt;_&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&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; &lt;/SPAN&gt;22&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&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; &lt;/SPAN&gt;200&lt;/P&gt;&lt;P class="p1"&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;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;a missing value, (, *, +, -, ALL, ANY, BTRIM, CALCULATED, CASE, INPUT, PUT, SELECT, SOME, SUBSTRING, TRANSLATE,&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;USER.&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;39&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;40 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;/P&gt;&lt;P class="p1"&gt;40 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;!&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;quit&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;The number in Where line refers to agreement number. Is there any solution to resolve the problem?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 20:23:31 GMT</pubDate>
    <dc:creator>curlygirl</dc:creator>
    <dc:date>2021-09-23T20:23:31Z</dc:date>
    <item>
      <title>Error 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/769883#M39581</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have problem running code listed below:&lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;&lt;BR /&gt;Select&lt;BR /&gt;&lt;BR /&gt;smlo.cislo_smlouvy&lt;BR /&gt;smlo.cislo_ramcove_smlouvy,&lt;BR /&gt;Skud.cislo_skodni_udalosti,&lt;BR /&gt;to_char(skud.datum_vzniku, ‘yyyy’) as vznik,&lt;BR /&gt;Scov.kod_scov&lt;BR /&gt;&lt;BR /&gt;From dwh.bcdf_smlo_smlouvy silo&lt;BR /&gt;Inner join dwh.bcdf_skud_skodni_udalosti skud on skud.smlo_pk=smlo.smlo_pk&lt;BR /&gt;Inner join dwh.bcdd_pssu_podslozky_su puss on pssu.skud_pk=skud_pk&lt;BR /&gt;Inner join dwh.bcdd_scov_subcover scoop on scov.scov_pk=pssu.scov_ok&lt;BR /&gt;&lt;BR /&gt;Where smlo.cislo_ramcove_smlouvy = (‘898306813’)&lt;BR /&gt;&lt;BR /&gt;;quit&lt;BR /&gt;&lt;BR /&gt;Each time I have problem with “smlo.cislo_ramcove_smlouvy”, it comes back with:&lt;BR /&gt;&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, AND, BETWEEN,&lt;BR /&gt;CONTAINS, EQ, EQT, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~=.&lt;BR /&gt;&lt;BR /&gt;Do you see any issue in the code? Will be thankful for any help.&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 23 Sep 2021 12:30:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/769883#M39581</guid>
      <dc:creator>curlygirl</dc:creator>
      <dc:date>2021-09-23T12:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/769884#M39582</link>
      <description>&lt;P&gt;I don't see where smlo is an alias associated with a data set. You have data sets with aliases silo, skud, puss and scoop, but no smlo.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From now on, please show us the entire log for this code, instead of parts of the log disconnected from the code.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 12:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/769884#M39582</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-23T12:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/769917#M39583</link>
      <description>&lt;P&gt;Beyond&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;'s answer, you miss the comma after the first selected variable.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 13:39:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/769917#M39583</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-09-23T13:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/769943#M39585</link>
      <description>&lt;P&gt;When you have questions about messages such as errors or warnings please &lt;STRONG&gt;always &lt;/STRONG&gt;copy the entire procedure or data step along with all notes, messages, warnings and errors from the LOG. Then open a text box on the forum using the &amp;lt;/&amp;gt; icon at the top of the message window and paste all the text. This preserves formatting of text. Many errors, such as the one you show will have diagnostic characters that indicate exactly where SAS determines the particular error appears. The message windows here will reformat the text but the text box will preserve the location of the diagnostic characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see this example similar to yours.&amp;nbsp; Notice I include the entire procedure and it becomes pretty clear where the particular error occurs.&lt;/P&gt;
&lt;PRE&gt;209  proc sql;
210     select a.sex
211            b.age
               -
               22
               76
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=,
              &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, AND, BETWEEN, CONTAINS, EQ, EQT, GE, GET, GT, GTT, LE, LET, LIKE,
              LT, LTT, NE, NET, OR, ^=, |, ||, ~=.

ERROR 76-322: Syntax error, statement will be ignored.

212     from sashelp.class
213          left join
214          sashelp.class as b
215          on a.name=b.name
216     ;
217  quit;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.03 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;
&lt;P&gt;The underscore under the B on line 211 is the issue because of the missing , between it and the first variable selected.&lt;/P&gt;
&lt;P&gt;And after that is corrected we get&lt;/P&gt;
&lt;PRE&gt;218  proc sql;
219     select a.sex,
220            b.age
221     from sashelp.class
222          left join
223          sashelp.class as b
224          on a.name=b.name
225     ;
ERROR: Unresolved reference to table/correlation name a.
ERROR: Unresolved reference to table/correlation name a.
226  quit;
&lt;/PRE&gt;
&lt;P&gt;because of the unassigned correlation for the table. Such as your code would likely get as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt; points out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 20:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/769943#M39585</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-23T20:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/770034#M39587</link>
      <description>Thanks! That helped</description>
      <pubDate>Thu, 23 Sep 2021 20:15:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/770034#M39587</guid>
      <dc:creator>curlygirl</dc:creator>
      <dc:date>2021-09-23T20:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/770035#M39588</link>
      <description>&lt;P&gt;Thanks! Will keep it in mind.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I fixed the things everyone mentioned above and changed "to_chat" since its used only in SQL app, not in SAS Enterprise Guide. However, now I have problem with the Where section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;24 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Proc sql;&lt;/P&gt;&lt;P class="p1"&gt;25 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Select&lt;/P&gt;&lt;P class="p1"&gt;26&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;27 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;smlo.cislo_smlouvy,&lt;/P&gt;&lt;P class="p1"&gt;28 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;smlo.cislo_ramcove_smlouvy,&lt;/P&gt;&lt;P class="p1"&gt;29 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Skud.cislo_skodni_udalosti,&lt;/P&gt;&lt;P class="p1"&gt;30 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;vznik =year(datepart(skud.datum_vzniku)),&lt;/P&gt;&lt;P class="p1"&gt;31 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Scov.kod_scov&lt;/P&gt;&lt;P class="p1"&gt;32&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;33 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;From dwh.bcdf_smlo_smlouvy smlo&lt;/P&gt;&lt;P class="p1"&gt;34 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Inner join dwh.bcdf_skud_skodni_udalosti skud on skud.smlo_pk=smlo.smlo_pk&lt;/P&gt;&lt;P class="p1"&gt;35 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Inner join dwh.bcdd_pssu_podslozky_su pssu on pssu.skud_pk=skud.skud_pk&lt;/P&gt;&lt;P class="p1"&gt;36 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Inner join dwh.bcdd_scov_subcover scov on scov.scov_pk=pssu.scov_ok&lt;/P&gt;&lt;P class="p1"&gt;37&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;38 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Where smlo.cislo_ramcove_smlouvy = ’898306813’&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&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; &lt;/SPAN&gt;_&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&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; &lt;/SPAN&gt;22&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&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; &lt;/SPAN&gt;200&lt;/P&gt;&lt;P class="p1"&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;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;a missing value, (, *, +, -, ALL, ANY, BTRIM, CALCULATED, CASE, INPUT, PUT, SELECT, SOME, SUBSTRING, TRANSLATE,&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;USER.&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;39&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;40 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;/P&gt;&lt;P class="p1"&gt;40 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;!&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;quit&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;The number in Where line refers to agreement number. Is there any solution to resolve the problem?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 20:23:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/770035#M39588</guid>
      <dc:creator>curlygirl</dc:creator>
      <dc:date>2021-09-23T20:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/770052#M39590</link>
      <description>&lt;P&gt;Pasting the log into your reply does not maintain the formatting of the log. We request that you follow these instructions: in the icon bar above where you type your reply, click on the &amp;lt;/&amp;gt; and paste the log into the window that appears. This preserves the formatting of the log and makes it easier for us to figure out what is going on. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 21:17:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/770052#M39590</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-23T21:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/770082#M39591</link>
      <description>&lt;P&gt;If you use a fixed font for the text you can see that SAS is complaining about that strange character after the equal sign that looks more like a superscript version of a comma than an actual quote character.&amp;nbsp; Most likely you copied that code from some word processor software that replaced the quotes with "stupid" quotes.&lt;/P&gt;
&lt;PRE&gt;38 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Where smlo.cislo_ramcove_smlouvy = ’898306813’
&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
&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; 200
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a missing value, (, *, +, -, ALL, ANY, BTRIM, CALCULATED, CASE, INPUT, PUT, SELECT, SOME, SUBSTRING, TRANSLATE,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; USER.&amp;nbsp;

ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/PRE&gt;
&lt;P&gt;Replace those strange characters around the digit string with real quote characters.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 00:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/770082#M39591</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-24T00:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/770113#M39592</link>
      <description>&lt;P&gt;Always use this button to post logs (or textual data, or non-SAS code):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This will keep all the original formatting, and make it much easier to identify the problem.&lt;/P&gt;
&lt;P&gt;You have a "curly" (UTF) single quote there.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 05:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-22-322-Syntax-error/m-p/770113#M39592</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-09-24T05:59:44Z</dc:date>
    </item>
  </channel>
</rss>

