<?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 New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error/m-p/879795#M39043</link>
    <description>Thank you.</description>
    <pubDate>Thu, 08 Jun 2023 15:52:37 GMT</pubDate>
    <dc:creator>Sandeep77</dc:creator>
    <dc:date>2023-06-08T15:52:37Z</dc:date>
    <item>
      <title>Syntax error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error/m-p/879789#M39041</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am writing a very basic code but it shows as syntax error. Can you please let me know what is the error in the code as I think the code is correct. Thanks&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sql;
create table adding_repcode as 
select a.*,
b.rep_code
from Linked_for_CFOut as a
inner join p2scflow.debt as b on a.Account Number=b.debt_code;
quit;
Error log:
29         Proc sql;
30         create table adding_repcode as
31         select a.*,
32         b.rep_code
33         from Linked_for_CFOut as a
34         inner join p2scflow.debt as b on a.Account Number=b.debt_code;
                                                      ______
                                                      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, EQ, EQT, GE, GET, 
              GROUP, GT, GTT, HAVING, LE, LET, LT, LTT, NE, NET, OR, ORDER, WHERE, ^=, |, ||, ~=.  

ERROR 76-322: Syntax error, statement will be ignored.

NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
35         quit;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      user cpu time       0.00 seconds
      system cpu time     0.00 seconds
      memory              337.90k
      OS Memory           32108.00k
      Timestamp           06/08/2023 04:22:52 PM
      Step Count                        36  Switch Count  0&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 15:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error/m-p/879789#M39041</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2023-06-08T15:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error/m-p/879792#M39042</link>
      <description>&lt;P&gt;a.Account and Number are two different objects for the SQL interpreter, as they are separated by a blank.&lt;/P&gt;
&lt;P&gt;If you actually made he mistake of creating a variable with a non-standard name, you have to use a name literal:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;on a.'Account Number'n=b.debt_code&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But you should go back to where this variable is created and make sure that an underline is used in place of the blank.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 15:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error/m-p/879792#M39042</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-06-08T15:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error/m-p/879795#M39043</link>
      <description>Thank you.</description>
      <pubDate>Thu, 08 Jun 2023 15:52:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error/m-p/879795#M39043</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2023-06-08T15:52:37Z</dc:date>
    </item>
  </channel>
</rss>

