<?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 Variable not found in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302192#M60685</link>
    <description>&lt;P&gt;Best guess is that there is a subtle difference in the name that you're not noticing. &amp;nbsp;Try running&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=teen; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and see what the output shows for the variable names.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 23:40:38 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2016-10-03T23:40:38Z</dc:date>
    <item>
      <title>Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302188#M60684</link>
      <description>&lt;P&gt;The variables I have are Community, CommunityName, BirthRate, BelowPovLev, Crowded, Dependency, NoHSDiploma, Income, and Unemployment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have imported the CSV file, and with Proc Print, every variable shows up in the table. When I try to do any other procedure like sgscatter or corr, the variable Unemployment is not found. There are no spelling errors as I have copied and pasted the word from the Excel file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;56 Proc sgscatter Data=Teen;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;57 MATRIX Community BirthRate BelowPovLev Crowded Dependency NoHSDiploma Income&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;58 Unemployment;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Variable UNEMPLOYMENT not found.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;59 Run;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;What am I doing wrong?&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Oct 2016 23:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302188#M60684</guid>
      <dc:creator>md11r0</dc:creator>
      <dc:date>2016-10-03T23:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302192#M60685</link>
      <description>&lt;P&gt;Best guess is that there is a subtle difference in the name that you're not noticing. &amp;nbsp;Try running&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=teen; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and see what the output shows for the variable names.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 23:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302192#M60685</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-10-03T23:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302194#M60686</link>
      <description>&lt;P&gt;Is this what you're referring to? If so, what do I get from this table?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13025iDD1C5EE839C9AC5D/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2016-10-03 at 7.44.23 PM.png" title="Screen Shot 2016-10-03 at 7.44.23 PM.png" /&gt;</description>
      <pubDate>Mon, 03 Oct 2016 23:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302194#M60686</guid>
      <dc:creator>md11r0</dc:creator>
      <dc:date>2016-10-03T23:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302195#M60687</link>
      <description>&lt;P&gt;Unemployment is a character variable, and I think it needs to be a numeric to be part of the MATRIX statement. &amp;nbsp;That's a misleading error message if that's the case, I'll admit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If Unemployment is supposed be numeric, check your import step to ensure that variable is defined properly and read with a numeric informat.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 23:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302195#M60687</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-10-03T23:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302197#M60688</link>
      <description>&lt;P&gt;Okay. In the actual Excel file, everything under Unemployment is numeric. How would I get SAS to read it as numeric? I haven't worked much with Proc Import, sorry.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 23:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302197#M60688</guid>
      <dc:creator>md11r0</dc:creator>
      <dc:date>2016-10-03T23:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302230#M60691</link>
      <description>&lt;P&gt;When you import your CSV file check your log. The code will be in the log. Copy this code and customize as required by changing the informats/formats.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 03:30:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302230#M60691</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-04T03:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302283#M60699</link>
      <description>&lt;P&gt;If it is a CSV file, then write a datastep to read in the file exactly as you know the data to be. &amp;nbsp;Don't rely on proc import to guess things for you.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 08:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302283#M60699</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-04T08:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable not found</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302351#M60703</link>
      <description>&lt;P&gt;Open the CSV file with something like NOTEPAD or WORDPAD, not Excel, and see if there are any quotes around the values you think should be numeric. Of if the first few rows of data are missing for the variable then Import may assume they are character if the Guessingrows wasn't set high enough (defaults to 20 I believe).&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 14:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Variable-not-found/m-p/302351#M60703</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-04T14:41:38Z</dc:date>
    </item>
  </channel>
</rss>

