<?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 from code in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Error-from-code/m-p/669567#M23214</link>
    <description>&lt;P&gt;In a.state=b.state, one data set has state as numeric and the other has state as character. Or, it applies to&amp;nbsp;&lt;SPAN&gt;a.county = b.county.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So you have to have two character variables, or two numeric variables, surrounding the equal sign, for this to work.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2020 16:22:56 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-07-15T16:22:56Z</dc:date>
    <item>
      <title>Error from code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-from-code/m-p/669564#M23213</link>
      <description>&lt;P&gt;Hi! I am struggling with SAS syntax error diagnosis. I am new to SAS and I have been trying hard to resolve simple errors but I still cant. Any help with the below error from my proc procedure please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; create table Co_STLoc as&lt;BR /&gt;&amp;nbsp; &amp;nbsp; select a.*, b.St_fips AS Client_state, co_fips AS G132&lt;BR /&gt;&amp;nbsp; &amp;nbsp; from Co_ST_Out as a left join Fipsmod1 as b&lt;BR /&gt;&amp;nbsp; &amp;nbsp; on a.State = b.State AND a.county = b.county;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ERROR: Expression using equals (=) has components that are of different data types.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 16:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-from-code/m-p/669564#M23213</guid>
      <dc:creator>adzoyi</dc:creator>
      <dc:date>2020-07-15T16:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error from code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-from-code/m-p/669567#M23214</link>
      <description>&lt;P&gt;In a.state=b.state, one data set has state as numeric and the other has state as character. Or, it applies to&amp;nbsp;&lt;SPAN&gt;a.county = b.county.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So you have to have two character variables, or two numeric variables, surrounding the equal sign, for this to work.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 16:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-from-code/m-p/669567#M23214</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-07-15T16:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error from code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-from-code/m-p/669576#M23215</link>
      <description>Run a proc contents on each of your input data sets. Check your types fo the State &amp;amp; County variables between each data set. PUT() will convert a number to a character and INPUT() will convert a character to a number. &lt;BR /&gt;&lt;BR /&gt;You can do the conversion in your ON clause directly once you figure it out. &lt;BR /&gt;&lt;BR /&gt;ie &lt;BR /&gt;If county was character in table B but numeric in table A this is what your ON should be:&lt;BR /&gt;a.county = input(b.county, 8.) &lt;BR /&gt;&lt;BR /&gt;If county was numeric in table B and character in table A you could convert it to a character.&lt;BR /&gt;a.County = put(b.county, 8. -l);</description>
      <pubDate>Wed, 15 Jul 2020 16:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-from-code/m-p/669576#M23215</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-07-15T16:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error from code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-from-code/m-p/669763#M23227</link>
      <description>I appreciate the help.</description>
      <pubDate>Thu, 16 Jul 2020 01:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-from-code/m-p/669763#M23227</guid>
      <dc:creator>adzoyi</dc:creator>
      <dc:date>2020-07-16T01:32:02Z</dc:date>
    </item>
  </channel>
</rss>

