<?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: Numberic and variable error in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Numberic-and-variable-error/m-p/482913#M71687</link>
    <description>&lt;P&gt;The error messages are pretty self explanatory here. The variables&amp;nbsp;&lt;SPAN&gt;y1998-y2012 are defined in one location as numeric and in another as character. &lt;A href="http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p06aw5wr49vg04n1n0iqzalvqss0.htm&amp;amp;docsetVersion=3.1&amp;amp;locale=en" target="_self"&gt;PROC CONTENTS&lt;/A&gt; is your friend in this type of problem.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jul 2018 18:53:56 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-07-31T18:53:56Z</dc:date>
    <item>
      <title>Numberic and variable error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numberic-and-variable-error/m-p/482897#M71684</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I stop getting this error, when I keep getting the following error with the code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;MPRINT(SERIES): data tempsas.itemACPSA_partial_combine;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;MPRINT(SERIES): set tempsas.itemACPSA_partial_combine_0 tempsas.itemACPSA_Interp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y1998 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y1999 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2000 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2001 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2002 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2003 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2004 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2005 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2006 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2007 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2008 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2009 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2010 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2011 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Variable y2012 has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;WARNING: The data set TEMPSAS.ITEMACPSA_PARTIAL_COMBINE may be incomplete. When this step was stopped there were 0 observations&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;and 27 variables.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;cpu time 0.00 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;data tempsas.current_item_concordance;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;set &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;concord.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;amp;acpsaitemcc;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.current_item_concordance out=tempsas.current_item_concordance_sort;&lt;/P&gt;&lt;P&gt;by itemCode itemACPSA;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data tempsas.itemACPSA_partial_combine_0;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;length itemCode $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;20&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; itemDescr $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;300&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; itemACPSA $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; itemACPSADescr $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;90&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set tempsas.itemACPSA_23 tempsas.itemACPSA_3X tempsas.itemACPSA_51 tempsas.itemACPSA_54 tempsas.itemACPSA_56 tempsas.itemACPSA_61 tempsas.itemACPSA_71 tempsas.itemACPSA_81 tempsas.itemACPSA_99;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;where upcase(isInterp) ne &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'Y'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;format itemCode &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$20.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; itemDescr &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$300.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; itemACPSA &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$9.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; itemACPSADescr &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$90.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data tempsas.itemACPSA_partial_combine;&lt;/P&gt;&lt;P&gt;set tempsas.itemACPSA_partial_combine_0 tempsas.itemACPSA_Interp;&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.itemACPSA_partial_combine out=tempsas.itemACPSA_partial_combine_sort;&lt;/P&gt;&lt;P&gt;by itemCode itemACPSA;&lt;/P&gt;&lt;P&gt;proc summary data=tempsas.current_item_concordance_sort;&lt;/P&gt;&lt;P&gt;by itemCode;&lt;/P&gt;&lt;P&gt;id itemDescr;&lt;/P&gt;&lt;P&gt;var weight;&lt;/P&gt;&lt;P&gt;output out=tempsas.current_item_concordance_sum(drop=_type_) sum= ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 17:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numberic-and-variable-error/m-p/482897#M71684</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2018-07-31T17:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Numberic and variable error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numberic-and-variable-error/m-p/482905#M71686</link>
      <description>&lt;P&gt;same variable names have different&amp;nbsp; datatypes in your different datasets, hence the error. You need to fix the variables to&amp;nbsp; have same data type to avoid this error.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 18:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numberic-and-variable-error/m-p/482905#M71686</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-07-31T18:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Numberic and variable error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numberic-and-variable-error/m-p/482913#M71687</link>
      <description>&lt;P&gt;The error messages are pretty self explanatory here. The variables&amp;nbsp;&lt;SPAN&gt;y1998-y2012 are defined in one location as numeric and in another as character. &lt;A href="http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p06aw5wr49vg04n1n0iqzalvqss0.htm&amp;amp;docsetVersion=3.1&amp;amp;locale=en" target="_self"&gt;PROC CONTENTS&lt;/A&gt; is your friend in this type of problem.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 18:53:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numberic-and-variable-error/m-p/482913#M71687</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-31T18:53:56Z</dc:date>
    </item>
  </channel>
</rss>

