<?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 Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474940#M122105</link>
    <description>&lt;P&gt;Hey, thanks for pointing the name out it work once I put it in as&amp;nbsp;t1.Final_Population_Result as Impacted_Flag, cheers for your help&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jul 2018 15:08:46 GMT</pubDate>
    <dc:creator>HelMul</dc:creator>
    <dc:date>2018-07-02T15:08:46Z</dc:date>
    <item>
      <title>Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474924#M122099</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Is anyone able to help me with the below, I'm sure the answer is glaring me in the face but I just can't seem to figure it out..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;15 proc sql;&lt;BR /&gt;16 create table UBIF_Impacted_Flag as&lt;BR /&gt;17 select t1.Ledger as client_ID&lt;BR /&gt;18 ,t1.name&lt;BR /&gt;19 ,t1.Status_Update as Status,&lt;BR /&gt;20 ,t1.Final_Population Result as 'Impacted_Flag'&lt;BR /&gt;_ ______&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;22 202&lt;/FONT&gt;&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, INPUT, PUT, SUBSTRING, USER.&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;20 ! ,t1.Final_Population Result as 'Impacted_Flag'&lt;BR /&gt;______&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;22&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;AND, AS, BETWEEN, CONTAINS, EQ, EQT, FORMAT, FROM, GE, GET, GT, GTT, IN, INFORMAT, INTO, IS, LABEL, LE, LEN, LENGTH, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, TRANSCODE, ^, ^=, |, ||, ~, ~=.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;21 ,t1.FF_Candidate&lt;BR /&gt;22 ,t1.Relationship_Manager&lt;BR /&gt;23 from egtask.UBIF_Impacted_Population_FINAL t1&lt;BR /&gt;24 ;&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;25 quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;26&lt;BR /&gt;27 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;28 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;29 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;30 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;2 The SAS System 10:16 Monday, July 2, 2018&lt;/P&gt;&lt;P&gt;31 %LET _SASPROGRAMFILE=;&lt;BR /&gt;32&lt;BR /&gt;33 ;*';*";*/;quit;run;&lt;BR /&gt;34 ODS _ALL_ CLOSE;&lt;BR /&gt;35&lt;BR /&gt;36&lt;BR /&gt;37 QUIT; RUN;&lt;BR /&gt;38&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474924#M122099</guid>
      <dc:creator>HelMul</dc:creator>
      <dc:date>2018-07-02T14:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474930#M122100</link>
      <description>&lt;P&gt;Yes, sorry to say but it is staring you in the face.&amp;nbsp; You have an extra comma at the end of the preceding line.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474930#M122100</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-07-02T14:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474933#M122101</link>
      <description>&lt;P&gt;I removed the comma but same error&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;15 proc sql;&lt;BR /&gt;16 create table UBIF_Impacted_Flag as&lt;BR /&gt;17 select t1.Ledger as client_ID&lt;BR /&gt;18 ,t1.name&lt;BR /&gt;19 ,t1.Status_Update as Status&lt;BR /&gt;20 ,t1.Final_Population Result as 'Impacted_Flag'&lt;BR /&gt;&lt;FONT color="#000000"&gt;______&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;22&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;202&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;AND, AS, BETWEEN, CONTAINS, EQ, EQT, FORMAT, FROM, GE, GET, GT, GTT, IN, INFORMAT, INTO, IS, LABEL, LE, LEN, LENGTH, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, TRANSCODE, ^, ^=, |, ||, ~, ~=.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;21 ,t1.FF_Candidate&lt;BR /&gt;22 ,t1.Relationship_Manager&lt;BR /&gt;23 from egtask.UBIF_Impacted_Population_FINAL t1&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:01:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474933#M122101</guid>
      <dc:creator>HelMul</dc:creator>
      <dc:date>2018-07-02T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474938#M122103</link>
      <description>&lt;P&gt;Yes, finding the first error often reveals the next one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the name of the field you are trying to bring in?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you really have a field with an embedded blank in the name:&amp;nbsp; Final_Population Result&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that the "as" keyword forces you to select a field name, so you wouldn't need quotes around "Impacted_Flag"&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474938#M122103</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-07-02T15:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474939#M122104</link>
      <description>&lt;P&gt;From now on, could you please help us all out by posting SASLOGs in the window that appears after you click on the {i} icon? Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474939#M122104</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-07-02T15:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474940#M122105</link>
      <description>&lt;P&gt;Hey, thanks for pointing the name out it work once I put it in as&amp;nbsp;t1.Final_Population_Result as Impacted_Flag, cheers for your help&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-error/m-p/474940#M122105</guid>
      <dc:creator>HelMul</dc:creator>
      <dc:date>2018-07-02T15:08:46Z</dc:date>
    </item>
  </channel>
</rss>

