<?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, expecting one of the following: a name, a quoted string, a numeric c in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/628763#M185855</link>
    <description>&lt;P&gt;When you try to create &amp;amp;FELD1 and no rows of the data set work.gemappt match the where condition, the the macro variables do not get created. You need to check to see if that is what has happened.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, PLEASE follow these instructions when posting the LOG from a SAS program: please help us out in the future by pasting the log file into the window that appears when you click on the {i} icon. This preserves the formatting of the log and makes it easier for us to read and decipher. DO NOT SKIP THIS STEP!&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 13:57:27 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-03-02T13:57:27Z</dc:date>
    <item>
      <title>ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric const</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/628761#M185853</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently face another problem with a macro that I recently created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like the programm does not resolve my macro variables.&lt;/P&gt;&lt;P&gt;Which is strange as it did the day before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is just the beginning of a macro, where I compare a Table that includes certain values with lots of other tables including the values.&lt;/P&gt;&lt;P&gt;In the following code I create the macro variables and focus the table on prompts which I created.&lt;/P&gt;&lt;P&gt;In the next Proc SQL statement I create a table focused on the macro variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I said it is just the beginning of a code, however posting the whole code would distract from the problem imo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance.&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;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Options Mprint;

Proc SQL noprint ;
Select name,
tabellenname,
Stichwort_ID
Into :Feld1 - ,
:Tabelle1 - ,
:ID1 -
From Work.GEMAPPT
where "&amp;amp;Eingabe_CD_Feld" = name
and "&amp;amp;Eingabe_Tabelle" = tabellenname;

Quit;


Proc SQL;
Create Table Fokus AS
Select Distinct &amp;amp;Feld1 AS &amp;amp;Feld1,
From RC.&amp;amp;Tabelle1;
Quit;&lt;/PRE&gt;&lt;P&gt;Proc SQL;&lt;BR /&gt;30 Create Table Fokus AS&lt;BR /&gt;31 Select Distinct &amp;amp;Feld1 AS &amp;amp;Feld1,&lt;BR /&gt;NOTE: Line generated by the macro variable "SASWORKLOCATION".&lt;BR /&gt;31 &amp;amp;Feld&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;WARNING: Apparent symbolic reference FELD not resolved.&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;BR /&gt;a missing value, BTRIM, INPUT, PUT, SUBSTRING, USER.&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the macro variable "FELD1".&lt;BR /&gt;31 "Verbund&lt;BR /&gt;____________________&lt;BR /&gt;22&lt;BR /&gt;ERROR 22-322: Expecting a name.&lt;/P&gt;&lt;P&gt;32 From RC.&amp;amp;Tabelle1;&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;NOTE: Line generated by the macro variable "TABELLE1".&lt;BR /&gt;32 RC.VERBUND&lt;BR /&gt;___&lt;BR /&gt;22&lt;BR /&gt;76&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,&lt;BR /&gt;BETWEEN, CONTAINS, EQ, EQT, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~=.&lt;BR /&gt;2 The SAS System 14:15 Monday, March 2, 2020&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;33 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;34&lt;BR /&gt;35 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;36 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;37 %LET _CLIENTPROCESSFLOWNAME=;&lt;BR /&gt;38 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;39 %LET _CLIENTPROJECTPATHHOST=;&lt;BR /&gt;40 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;41 %LET _SASPROGRAMFILE=;&lt;BR /&gt;42 %LET _SASPROGRAMFILEHOST=;&lt;BR /&gt;43 %SYMDEL Eingabe_CD_Feld;&lt;BR /&gt;44 %SYMDEL Eingabe_Tabelle;&lt;BR /&gt;45&lt;BR /&gt;46 ;*';*";*/;quit;run;&lt;BR /&gt;47 ODS _ALL_ CLOSE;&lt;BR /&gt;48&lt;BR /&gt;49&lt;BR /&gt;50 QUIT; RUN;&lt;BR /&gt;51&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/628761#M185853</guid>
      <dc:creator>Debugger</dc:creator>
      <dc:date>2020-03-02T13:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric c</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/628763#M185855</link>
      <description>&lt;P&gt;When you try to create &amp;amp;FELD1 and no rows of the data set work.gemappt match the where condition, the the macro variables do not get created. You need to check to see if that is what has happened.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, PLEASE follow these instructions when posting the LOG from a SAS program: please help us out in the future by pasting the log file into the window that appears when you click on the {i} icon. This preserves the formatting of the log and makes it easier for us to read and decipher. DO NOT SKIP THIS STEP!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/628763#M185855</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-02T13:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric c</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/628770#M185859</link>
      <description>&lt;P&gt;Thanks ...&lt;/P&gt;&lt;P&gt;That was pretty quick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will follow the instructions in the future!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:07:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Syntax-error-expecting-one-of-the-following-a-name/m-p/628770#M185859</guid>
      <dc:creator>Debugger</dc:creator>
      <dc:date>2020-03-02T14:07:26Z</dc:date>
    </item>
  </channel>
</rss>

