<?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 Numeric and character in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Numeric-and-character/m-p/453510#M13997</link>
    <description>&lt;P&gt;Hi guys&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got this error when I wanted to set tow datasets together &lt;STRONG&gt;( ERROR: VARIABLE CALVING_EASE HAS BEEN DEFINED AS BOTH CHARACTER&amp;nbsp;AND NUMERIC&amp;nbsp; )&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA ALL;
SET DATA9 DATA10;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;the variable calving_ease was having NA DATA I hade changed to missing data by using this second code and I still having the same issue&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set mfd4;
if anyalpha(calving_ease) then call missing(calving_ease);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;What can I do for this situation?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Apr 2018 11:53:36 GMT</pubDate>
    <dc:creator>Barkamih</dc:creator>
    <dc:date>2018-04-12T11:53:36Z</dc:date>
    <item>
      <title>Numeric and character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Numeric-and-character/m-p/453510#M13997</link>
      <description>&lt;P&gt;Hi guys&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got this error when I wanted to set tow datasets together &lt;STRONG&gt;( ERROR: VARIABLE CALVING_EASE HAS BEEN DEFINED AS BOTH CHARACTER&amp;nbsp;AND NUMERIC&amp;nbsp; )&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA ALL;
SET DATA9 DATA10;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;the variable calving_ease was having NA DATA I hade changed to missing data by using this second code and I still having the same issue&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set mfd4;
if anyalpha(calving_ease) then call missing(calving_ease);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;What can I do for this situation?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 11:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Numeric-and-character/m-p/453510#M13997</guid>
      <dc:creator>Barkamih</dc:creator>
      <dc:date>2018-04-12T11:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Numeric-and-character/m-p/453513#M13998</link>
      <description>&lt;P&gt;call missing does not change the type of a variable, it just either sets to a numeric missing or blanks for character variables.&lt;/P&gt;
&lt;P&gt;You need to do a conversion in one of your datasets.&lt;/P&gt;
&lt;P&gt;Still better is to look where the variable is created in the first place, and make the correction there.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 11:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Numeric-and-character/m-p/453513#M13998</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-12T11:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Numeric-and-character/m-p/453515#M13999</link>
      <description>&lt;P&gt;I gave you the right approach when you posted the earlier problem here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/Convert-character-to-numeric/m-p/453299" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Management/Convert-character-to-numeric/m-p/453299&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution you chose did not convert from character to numeric, hence the current problem.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 12:10:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Numeric-and-character/m-p/453515#M13999</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-04-12T12:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Numeric-and-character/m-p/454361#M14015</link>
      <description>&lt;P&gt;data9 and data10 has &lt;STRONG&gt;VARIABLE CALVING_EASE of&amp;nbsp;&lt;/STRONG&gt;different types.&lt;/P&gt;
&lt;P&gt;One is having character and other is numeric. So when you try to concatenated them using 'set' statement,&amp;nbsp;it throws error that the data type is different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to change the datatype of the said variable in one of the dataset so that it is in line with the other one.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 07:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Numeric-and-character/m-p/454361#M14015</guid>
      <dc:creator>mnjtrana</dc:creator>
      <dc:date>2018-04-16T07:22:48Z</dc:date>
    </item>
  </channel>
</rss>

