<?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: Excel reading and converting to macro variable error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Excel-reading-and-converting-to-macro-variable-error/m-p/507520#M136248</link>
    <description>Thank you. it worked very well.</description>
    <pubDate>Thu, 25 Oct 2018 16:27:08 GMT</pubDate>
    <dc:creator>SASAna</dc:creator>
    <dc:date>2018-10-25T16:27:08Z</dc:date>
    <item>
      <title>Excel reading and converting to macro variable error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-reading-and-converting-to-macro-variable-error/m-p/507510#M136244</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi SAS Users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting this below error, while reading a column from a excel( abc_short_desc has 3 byte character values, and they are looking fine when i read them) , Other columns are reading and creating the macro variables, just this one column is giving the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i am missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL NOPRINT;&lt;BR /&gt;24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; SELECT&amp;nbsp; &amp;amp;test_short_desc INTO :missdisc separated by '~'&lt;BR /&gt;NOTE: Line generated by the macro variable "TEST_SHORT_DESC".&lt;BR /&gt;24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abc_short_desc&lt;BR /&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; ___________&lt;BR /&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; 22&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, AS,&lt;BR /&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; CONTAINS, EQ, EQT, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~=. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; FROM miss_Data;&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;26&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; %LET NO_PL=&amp;amp;sqlobs;&lt;BR /&gt;27&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ana&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 15:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-reading-and-converting-to-macro-variable-error/m-p/507510#M136244</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2018-10-25T15:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Excel reading and converting to macro variable error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-reading-and-converting-to-macro-variable-error/m-p/507512#M136245</link>
      <description>&lt;P&gt;How did you create that macro variable?&lt;/P&gt;
&lt;P&gt;What happens if you just type the actual name of the variable instead of trying to use the value of the macro variable as the name?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SELECT abc_short_desc
  INTO :missdisc separated by '~'
  FROM miss_Data
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What happens if you add %unquote() to remove any macro quoting that might have been done to the content of the macro variable?&amp;nbsp; A variable name should not need any macro quoting as it cannot include any "special" characters.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SELECT %unquote(&amp;amp;test_short_desc)
  INTO :missdisc separated by '~'
  FROM miss_Data
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Oct 2018 16:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-reading-and-converting-to-macro-variable-error/m-p/507512#M136245</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-10-25T16:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Excel reading and converting to macro variable error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-reading-and-converting-to-macro-variable-error/m-p/507520#M136248</link>
      <description>Thank you. it worked very well.</description>
      <pubDate>Thu, 25 Oct 2018 16:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-reading-and-converting-to-macro-variable-error/m-p/507520#M136248</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2018-10-25T16:27:08Z</dc:date>
    </item>
  </channel>
</rss>

