<?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: Getting a syntax Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846566#M334652</link>
    <description>&lt;P&gt;You will have to post the log (with the code that provoked the error) for anyone to be able to answer that.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2022 10:53:59 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2022-11-28T10:53:59Z</dc:date>
    <item>
      <title>Getting a syntax Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846560#M334649</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm getting this syntax error; can someone please help me to fix this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, (, ',', ANSIMISS, AS, CROSS, EXCEPT, FULL, GROUP, HAVING,&lt;BR /&gt;INNER, INTERSECT, JOIN, LEFT, NATURAL, NOMISS, ORDER, OUTER, RIGHT, UNION, WHERE.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 10:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846560#M334649</guid>
      <dc:creator>nishXambe</dc:creator>
      <dc:date>2022-11-28T10:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a syntax Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846566#M334652</link>
      <description>&lt;P&gt;You will have to post the log (with the code that provoked the error) for anyone to be able to answer that.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 10:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846566#M334652</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2022-11-28T10:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a syntax Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846567#M334653</link>
      <description>&lt;P&gt;Sorry, I've managed to fix the previous error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I got this;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from hsoprd.claim /*as clm*/&lt;BR /&gt;192&lt;BR /&gt;193 /* inner join hsoprd.provider as prv&lt;BR /&gt;194 on clm.service_provider_id = prv.service_provider_id*/&lt;BR /&gt;195 inner join hsoprd.voucher as vch&lt;BR /&gt;196 on clm.voucher_id = vch.voucher_id&lt;BR /&gt;197 /* inner join hsoprd.client as clt&lt;BR /&gt;198 on clm.client_detail_id = clt.client_detail_id*/&lt;BR /&gt;199 /* inner join hsoprd.site as site&lt;BR /&gt;200 on clm.site_detail_id = site.site_detail_id*/&lt;BR /&gt;201 /* inner join hsoprd.practitioner as prc&lt;BR /&gt;202 on clm.practitioner_detail_id = prc.practitioner_detail_id*/&lt;BR /&gt;203 left join hsoprd.device as ldvc&lt;BR /&gt;204 on clm.left_device_id = ldvc.device_id&lt;BR /&gt;205 left join hsoprd.device as rdvc&lt;BR /&gt;206 on clm.right_device_id = rdvc.device_id&lt;BR /&gt;207&lt;BR /&gt;208 where clm.claim_detail_status = 'Approved'&lt;BR /&gt;209 /* and clm.date_of_payment &amp;gt;= &amp;amp;tdSDate&lt;BR /&gt;210 and clm.date_of_payment &amp;lt; &amp;amp;tdEdate*/&lt;BR /&gt;211 order by clm.claim_date_of_service&lt;BR /&gt;212 ;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: File WORK.HSOPRD_CLAIM_ITEM.DATA does not exist.&lt;/FONT&gt;&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;213 /*disconnect from teradata;*/&lt;BR /&gt;214 quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 11:02:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846567#M334653</guid>
      <dc:creator>nishXambe</dc:creator>
      <dc:date>2022-11-28T11:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a syntax Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846568#M334654</link>
      <description>&lt;P&gt;There is no reference to&amp;nbsp;WORK.HSOPRD_CLAIM_ITEM so this error must be thrown by some code which you don't show us.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error is clear though: You reference a table&amp;nbsp;WORK.HSOPRD_CLAIM_ITEM somewhere which doesn't exist.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For debugging:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Start a new SAS session&lt;/P&gt;
&lt;P&gt;2. Investigate and resolve the very first WARNING or ERROR you get in your code. Don't care about later Errors as they might just be a consequence of the first Error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fix the Error. Start a new SAS session, fix the next Error if any, ...etc.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 11:15:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846568#M334654</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-11-28T11:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a syntax Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846572#M334658</link>
      <description>&lt;P&gt;Syntax error is back in my code.... not sure where is the error...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;, case&lt;BR /&gt;125 when clm.item_number in (&amp;amp;Fittings)&lt;BR /&gt;126 and clm.item_number not in (631,636,641,651,656,661,761,771,821,826,831)&lt;BR /&gt;127 and&lt;BR /&gt;128 (&lt;BR /&gt;129 (cast(clm.Claim_Date_Of_Service as date) - cast(clm.Left_Fitting_Date as date) &amp;lt; 7&lt;BR /&gt;__ __&lt;BR /&gt;22 22&lt;BR /&gt;202 202&lt;BR /&gt;&lt;FONT color="#FF0000"&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;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CONTAINS, EQ, EQT, GE, GET, GT, GTT, IN, IS, LE, LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, ^, ^=, |, ||, ~, ~=.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;130 and )&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;a missing value, (, +, -, BTRIM, CALCULATED, CASE, EXISTS, INPUT, NOT, PUT, SUBSTRING, TRANSLATE, USER, ^, ~.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;131 cast(clm.Claim_Date_Of_Service as date) - cast(clm.Left_Fitting_Date as date) &amp;gt;= 0)&lt;BR /&gt;__ __&lt;BR /&gt;22 22&lt;BR /&gt;202 202&lt;BR /&gt;&lt;FONT color="#FF0000"&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;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CONTAINS, EQ, EQT, GE, GET, GT, GTT, IN, IS, LE, LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, ^, ^=, |, ||, ~, ~=.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;132 or&lt;BR /&gt;133 (cast(clm.Claim_Date_Of_Service as date) - cast(clm.Right_Fitting_Date as date) &amp;lt; 7&lt;BR /&gt;__ __&lt;BR /&gt;22 22&lt;BR /&gt;202 202&lt;BR /&gt;&lt;FONT color="#FF0000"&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;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CONTAINS, EQ, EQT, GE, GET, GT, GTT, IN, IS, LE, LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, ^, ^=, |, ||, ~, ~=.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;134 and )&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;4 The SAS System 22:24 Monday, November 28, 2022&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;a missing value, (, +, -, BTRIM, CALCULATED, CASE, EXISTS, INPUT, NOT, PUT, SUBSTRING, TRANSLATE, USER, ^, ~.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;135 cast(clm.Claim_Date_Of_Service as date) - cast(clm.Right_Fitting_Date as date) &amp;gt;= 0)&lt;BR /&gt;__ __&lt;BR /&gt;22 22&lt;BR /&gt;202 202&lt;BR /&gt;&lt;FONT color="#FF0000"&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;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CONTAINS, EQ, EQT, GE, GET, GT, GTT, IN, IS, LE, LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, ^, ^=, |, ||, ~, ~=.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;136 )&lt;BR /&gt;137 then 'Y'&lt;BR /&gt;138 else&lt;BR /&gt;139 ''&lt;BR /&gt;140 end as DOSlt7DOF&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 12:03:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846572#M334658</guid>
      <dc:creator>nishXambe</dc:creator>
      <dc:date>2022-11-28T12:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a syntax Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846583#M334660</link>
      <description>&lt;P&gt;cast() is not SAS SQL syntax&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 12:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-a-syntax-Error/m-p/846583#M334660</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-11-28T12:14:56Z</dc:date>
    </item>
  </channel>
</rss>

