<?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 x has been defined as both character and numeric. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/error-Variable-x-has-been-defined-as-both-character-and-numeric/m-p/108987#M30368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're quite welcome! and perhaps the professors example was meant to show you this fact about merging in sas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you like, you can specify what OUtput dataset you want (which columns do you want, do you want the variables Gender and Gender1 from datasets A and B to be distinct? if so a rename statement would be helpful!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what you are trying to do and I can help you write it / explain it. However I think some time spent looking up the fundamental rules for sas merging would be helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Oct 2013 20:29:06 GMT</pubDate>
    <dc:creator>Anotherdream</dc:creator>
    <dc:date>2013-10-09T20:29:06Z</dc:date>
    <item>
      <title>error: Variable x has been defined as both character and numeric.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/error-Variable-x-has-been-defined-as-both-character-and-numeric/m-p/108984#M30365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;After combining my data I got some errors such as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data combined;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;68&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; merge study4s study4s2;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ERROR: Variable gender has been defined as both character and numeric.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ERROR: Variable english has been defined as both character and numeric.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ERROR: Variable describejeans_1__Description_of_ has been defined as both character and numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I heard that SAS doesn't read blanks so I filled all the blanks with 999 in excel before importing here. That's the reason why I am getting those errors but I don't know how to fix it. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 20:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/error-Variable-x-has-been-defined-as-both-character-and-numeric/m-p/108984#M30365</guid>
      <dc:creator>sarab</dc:creator>
      <dc:date>2013-10-09T20:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: error: Variable x has been defined as both character and numeric.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/error-Variable-x-has-been-defined-as-both-character-and-numeric/m-p/108985#M30366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey! You started a new thread, it's much better for you to place this in your previous thread so people can read through and help you better!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically the errors you are getting are exactly what you are seeing. The values of "gender" and "english" are character in one dataset and Numeric in another, this cannot happen in a merge statement because of the way that SAS merges things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For clarification, do you happen to know the rules of SAS and merging? Aka are you aware that if variables have the same name in two distinct datasets they will actually be over-written instead of outputting two columns with the same name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 20:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/error-Variable-x-has-been-defined-as-both-character-and-numeric/m-p/108985#M30366</guid>
      <dc:creator>Anotherdream</dc:creator>
      <dc:date>2013-10-09T20:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: error: Variable x has been defined as both character and numeric.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/error-Variable-x-has-been-defined-as-both-character-and-numeric/m-p/108986#M30367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't know that. This is the first time I am trying to write something and it doesn't go smoothly but I am trying to learn by myself. I have to ask this issue to my professor I guess because I don't know how to fix it myself. &lt;/P&gt;&lt;P&gt;P.S: I posted it to the previous thread as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 20:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/error-Variable-x-has-been-defined-as-both-character-and-numeric/m-p/108986#M30367</guid>
      <dc:creator>sarab</dc:creator>
      <dc:date>2013-10-09T20:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: error: Variable x has been defined as both character and numeric.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/error-Variable-x-has-been-defined-as-both-character-and-numeric/m-p/108987#M30368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're quite welcome! and perhaps the professors example was meant to show you this fact about merging in sas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you like, you can specify what OUtput dataset you want (which columns do you want, do you want the variables Gender and Gender1 from datasets A and B to be distinct? if so a rename statement would be helpful!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what you are trying to do and I can help you write it / explain it. However I think some time spent looking up the fundamental rules for sas merging would be helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 20:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/error-Variable-x-has-been-defined-as-both-character-and-numeric/m-p/108987#M30368</guid>
      <dc:creator>Anotherdream</dc:creator>
      <dc:date>2013-10-09T20:29:06Z</dc:date>
    </item>
  </channel>
</rss>

